There are many theories about the formation of the Moon, but the most probable is that in the early days of the Solar System, the proto-Earth collided with a celestial body the size of Mars, and this impact generated enough energy to throw enough material into Earth's orbit to form the Moon.