Gravity from the Moon and the Sun causes tidal forces on Earth, leading to the rise and fall of ocean levels.