
Earth formed about 4.54 billion years ago from a cloud of rock, dust, and gas surrounding the newly formed sun. Gravity pulled this space debris together to form a sphere, which eventually melted and developed a layered structure of metal and rock. This structure then cooled down, finally becoming cool enough to support liquid oceans and an atmosphere.