Oxygen-producing photosynthesis must have evolved before the pervasive oxidation of the atmosphere around 2.4 billion years ago, but how long before is unclear. Geochemical analyses of ancient sedimentary rocks now suggest that cyanobacteria generated oxygen at least 3 billion years ago.