How was the Earth formed?

The Earth, along with the sun and the remaining planets of our solar system, originated around 4.8 billion years ago from dust particles, which agglomerated gradually. At that time, the young Earth was bombarded by countless meteorites from space. The Earth’s interior was molten and volcanoes erupted constantly. But over millions of years, the Earth’s surface cooled down. Around 3.8 billion years ago, the temperature decreased to about -100°C and the Earth’s crust slowly started becoming solid. At this time the gaseous cover on the Earth was mostly made up of water vapour.