Even though the mass of the sun is much greater than the mass of the moon, the moon has a greater influence on the tides than the sun. This is because the sun is much farther away from the earth, so its tidal force is only about half that of the moon.