As the Earth cooled, the outgassing of gases (via intense volcanism) from the Earth’s interior formed Earth’s first atmosphere. Unlike now, the first atmosphere was very hot and mostly composed of gases such as NH3 , CH4 , CO2 , and a bit of H2O. Around 4.0 billion years ago, water vapor in the atmosphere began to condense which produced torrential rains that formed our vast oceans.