Nitrogen fixation is carried out naturally in soil by microorganisms termed diazotrophs that include bacteria such as Azotobacter and archaea. Nitrogen fixation occurs between some termites and fungi. It occurs naturally in the air by means of NOx production by lightning.