Flexi Says: The Moon orbits Earth, which in turn orbits the Sun. The Sun's gravitational force of attraction keeps both the Moon and Earth in orbit. So, hypothetically if the Earth simply disappeared, the Moon might continue orbiting the Sun, though with its lower mass, the Moon's orbit might migrate outward.