Intense volcanic activity – water vapour, carbon dioxide, nitrogen, ammonia, methane released. Water vapour condensed to form oceans. Atmosphere mostly carbon dioxide; nitrogen slowly building up over time. Carbon dioxide dissolved in oceans; carbonates precipitated producing sediments. Carbon dioxide levels in atmosphere drop. Photosynthesis – algae produce oxygen. Plants evolved, levels of carbon dioxide reduced, levels of oxygen increased; animals evolved. Carbon dioxide levels dropped during the formation of sedimentary rock (from sediments) and fossil fuels (from organisms).