Gravity causes planets to orbit stars in ellipses, with those closer to the star moving faster. The moon orbits Earth, causing tides and eclipses. Its phases are due to the changing portion illuminated by the sun from Earth's perspective over the lunar month.