The first atmosphere had little oxygen and was likely thick with water vapor, along with compounds released by volcanic eruptions, such as nitrogen and its oxides, carbon dioxide, methane, ammonia and hydrogen. As Earth cooled, the water vapor condensed into oceans, and much of the hydrogen escaped into space