Diazotrophs are widespread within domain Bacteria including cyanobacteria (e.g. the highly significant Trichodesmium and Cyanothece), green sulfur bacteria, purple sulfur bacteria, Azotobacteraceae, rhizobia and Frankia. Several obligately anaerobic bacteria fix nitrogen including many (but not all) Clostridium spp. Some archaea such as Methanosarcina acetivorans also fix nitrogen, and several other methanogenic taxa, are significant contributors to nitrogen fixation in oxygen-deficient soils.
Cyanobacteria, commonly known as blue-green algae, inhabit nearly all illuminated environments on Earth and play key roles in the carbon and nitrogen cycle of the biosphere. In general, cyanobacteria can use various inorganic and organic sources of combined nitrogen, such as nitrate, nitrite, ammonium, urea, or some amino acids. Several cyanobacteria strains are also capable of diazotrophic growth, an ability that may have been present in their last common ancestor in the Archean eon. Nitrogen fixation not only naturally occurs in soils but also aquatic systems, including both freshwater and marine. Indeed, the amount of nitrogen fixed in the ocean is at least as much as that on land. The colonial marine cyanobacterium Trichodesmium is thought to fix nitrogen on such a scale that it accounts for almost half of the nitrogen fixation in marine systems globally. Marine surface lichens and non-photosynthetic bacteria belonging in Proteobacteria and Planctomycetes fixate significant atmospheric nitrogen. Species of nitrogen fixing cyanobacteria in fresh waters include: Aphanizomenon and Dolichospermum (previously Anabaena). Such species have specialized cells called heterocytes, in which nitrogen fixation occurs via the nitrogenase enzyme.