Earth was formed 4.5 billion years ago from a mixture of dust and gas. It grew larger due to collisions of dust particles, asteroids, and other growing planets, including one last giant impact that threw enough rock, gas, and dust into space to form the moon.