Gravity causes planets to orbit stars in ellipses, with those closer to the star moving faster. The moon's gravity also causes ocean tides on Earth. Eclipses occur when the sun, Earth, and moon align, blocking light. The phases of the moon are caused by the changing portion of the moon illuminated by the sun as it orbits Earth monthly.