Before photosynthesis evolved, Earth's atmosphere had no free oxygen. Photosyntheticprokaryotic organisms that produced O2 as a waste product lived long before the first build-up of free oxygen in the atmosphere, perhaps as early as 3.5 billion years ago. The oxygen they produced would have been rapidly removed from the oceans by weathering of reducing minerals, most notably iron. This rusting led to the deposition of iron oxide on the ocean floor, forming banded iron formations. Thus, the oceans rusted and turned red. Oxygen only began to persist in the atmosphere in small quantities about 50 million years before the start of the Great Oxygenation Event. This mass oxygenation of the atmosphere resulted in rapid buildup of free oxygen. At current rates of primary production, today's concentration of oxygen could be produced by photosynthetic organisms in 2,000 years. In the absence of plants, the rate of oxygen production by photosynthesis was slower in the Precambrian, and the concentrations of O2 attained were less than 10% of today's and probably fluctuated greatly; oxygen may even have disappeared from the atmosphere again around 1.9 billion years ago. These fluctuations in oxygen concentration had little direct effect on life, with mass extinctions not observed until the appearance of complex life around the start of the Cambrian period,. The presence of provided life with new opportunities. Aerobic metabolism is more efficient than anaerobic pathways, and the presence of oxygen created new possibilities for life to explore. Since the start of the Cambrian period, atmospheric oxygen concentrations have fluctuated between 15% and 35% of atmospheric volume. The maximum of 35% was reached towards the end of the Carboniferous period, a peak which may have contributed to the large size of insects and amphibians at that time. Whilst human activities, such as the burning of fossil fuels, affect relative carbon dioxide concentrations, their effect on the much larger concentration of oxygen is less significant.
Effects on life
The Great Oxygenation Event had the first major affect on the course of evolution. Due to the rapid buildup of oxygen in the atmosphere, many organisms that didn't rely on oxygen to live died. The concentration of oxygen in the atmosphere is often cited as a possible contributor to large-scale evolutionary phenomena, such as the origin of the multicellularEdiacara biota, the Cambrian explosion, trends in animal body size, and other extinction and diversification events. The large size of insects and amphibians in the Carboniferous period, when the oxygen concentration in the atmosphere reached 35%, has been attributed to the limiting role of diffusion in these organisms' metabolism. But Haldane's essay points out that it would only apply to insects. However, the biological basis for this correlation is not firm, and many lines of evidence show that oxygen concentration is not size-limiting in modern insects. There is no significant correlation between atmospheric oxygen and maximum body size elsewhere in the geological record. Ecological constraints can better explain the diminutive size of post-Carboniferous dragonflies - for instance, the appearance of flying competitors such as pterosaurs, birds and bats. Rising oxygen concentrations have been cited as one of several drivers for evolutionary diversification, although the physiological arguments behind such arguments are questionable, and a consistent pattern between oxygen concentrations and the rate of evolution is not clearly evident. The most celebrated link between oxygen and evolution occurs at the end of the last of the Snowball glaciations, where complex multicellular life is first found in the fossil record. Under low oxygen concentrations and before the evolution of nitrogen fixation, biologically-available nitrogen compounds were in limited supply and periodic "nitrogen crises" could render the ocean inhospitable to life. Significant concentrations of oxygen were just one of the prerequisites for the evolution of complex life. Models based on uniformitarian principles suggest that such a concentration was only reached immediately before metazoa first appeared in the fossil record. Further, anoxic or otherwise chemically "nasty" oceanic conditions that resemble those supposed to inhibit macroscopic life re-occur at intervals through the early Cambrian, and also in the late Cretaceous - with no apparent effect on lifeforms at these times. This might suggest that the geochemical signatures found in ocean sediments reflect the atmosphere in a different way before the Cambrian - perhaps as a result of the fundamentally different mode of nutrient cycling in the absence of planktivory. An oxygen-rich atmosphere can release phosphorus and iron from rock, by weathering, and these elements then become available for sustenance of new species whose metabolisms require these elements as oxides.