Tides are caused by the pull of gravity of the sun, and the moon on Earth’s waters. Since the moon is closer to Earth than the sun, it has a greater effect on tides than the sun does.