The Moon is believed to have formed about 4.5 billion years ago, shortly after the formation of the solar system. The prevailing theory, known as the Giant Impact Hypothesis, suggests that the Moon formed as a result of a collision between the early Earth and a Mars-sized celestial body named Theia.