Cyanobacteria (/saɪˌænoʊbækˈtɪəriə/ sy-AN-oh-bak-TEER-ee-ə) are a group of autotrophic gram-negative bacteria of the phylum Cyanobacteriota that can obtain biological energy via oxygenic photosynthesis. The name "cyanobacteria" (from Ancient Greek κύανος (kúanos) 'blue') refers to their bluish green (cyan) color, which forms the basis of cyanobacteria's informal common name, blue-green algae.
Cyanobacteria are probably the most numerous taxon to have ever existed on Earth and the first organisms known to have produced oxygen, having appeared in the middle Archean eon and apparently originated in a freshwater or terrestrial environment. Their photopigments can absorb the red- and blue-spectrum frequencies of sunlight (thus reflecting a greenish color) to split water molecules into hydrogen ions and oxygen. The hydrogen ions are used to react with carbon dioxide to produce complex organic compounds such as carbohydrates (a process known as carbon fixation), and the oxygen is released as a byproduct. By continuously producing and releasing oxygen over billions of years, cyanobacteria are thought to have converted the early Earth's anoxic, weakly reducing prebiotic atmosphere, into an oxidizing one with free gaseous oxygen (which previously would have been immediately removed by various surface reductants), resulting in the Great Oxidation Event and the "rusting of the Earth" during the early Proterozoic, dramatically changing the composition of life forms on Earth. The subsequent adaptation of early single-celled organisms to survive in oxygenous environments likely led to endosymbiosis between anaerobes and aerobes, and hence the evolution of eukaryotes during the Paleoproterozoic.