During Hadean time, the solar system was forming within a cloud of dust and gas known as the solar nebula, which eventually spawned asteroids, comets, moons and planets. Astrogeophysicists theorize that about 4.52 billion years ago the proto-Earth collided with a Mars-size planetoid named Theia.