Answer: when the solar system settled into its current layout about 4.5 billion years ago, earth formed when gravity pulled swirling gas & dust in to become the third planet from the sun. like its fellow terrestrial planets, earth has a central core, a rocky mantle, & a solid crust.