The Earth was formed from the nebula that produced the Solar System. It is almost universally accepted that the Sun, the planets and their satellites, the asteroids, and the comets of the Oort 'cloud' grew from a cloud of gas and dust that contracted under its own gravity.