The atmosphere of Earth is mostly composed of nitrogen. It also contains oxygen used by most organisms for respiration and carbon dioxide used by plants, algae and cyanobacteria for photosynthesis. The atmosphere helps protect living organisms from genetic damage by solar ultraviolet radiation, solar wind and cosmic rays. Its current composition is the product of billions of years of biochemical modification of the paleoatmosphere by living organisms.