Flexi Says: At first, Earth was molten and lacked an atmosphere and oceans. Gradually, the planet cooled and formed a solid crust. As the planet continued to cool, volcanoes released gases, which eventually formed an atmosphere. The early atmosphere contained ammonia, methane, water vapor, and carbon dioxide but only a trace of oxygen.