Tides are caused by the gravitational attraction of the moon and sun on the oceans as well as the centrifugal force from the Earth's rotation. High tides occur where the moon is overhead, while low tides happen 90 degrees away, and both the moon and sun's gravitational pulls contribute to the regular rising and falling of sea levels, though the moon has a greater effect being closer to Earth.