Early atmosphere made of mainly carbon dioxide and water vapour, with small amounts of methane, ammonia and nitrogen released from volcanoes. As Earth cooled water vapour condensed and formed the oceans. Carbon dioxide dissolved into oceans and forming carbonates and being precipitated out (made solid). Photosynthetic organisms evolved decreasing amount of CO2 in atmosphere and increasing O2 levels in atmosphere. Once enough oxygen was in the atmosphere, it could support animals, which carry out respiration releasing CO2.