Nitrogen gas makes up 78% of the atmosphere and nitrogen is also a part of many molecules essential to life like proteins, nucleic acids (DNA and RNA), and some vitamins.
Fixation of nitrogen:
Nitrogen is converted to nitrates by nitrogen-fixing bacteria.
Nitrogen-fixing bacteria are found in the roots of legumes in special structures called root nodules.
Other than these bacteria, the nitrogen molecule is converted to nitrates and nitrites by a physical process.
During lightning, the high temperatures and pressures created in the air convert nitrogen into oxides of nitrogen.
These oxides dissolve in water to give nitric and nitrous acids and fall on land along with rain.
These are then utilized by various life forms.
Plants generally take up nitrates and nitrites and convert them into amino acids which are used to make proteins.
These proteins and other complex compounds are subsequently consumed by animals.
Once the animal or the plant dies, other bacteria in the soil convert the various compounds of nitrogen back into nitrates and nitrites.
A different type of bacteria converts nitrates and nitrites into elemental nitrogen.
Thus, there is a nitrogen cycle in nature in which nitrogen passes from its elemental form in the atmosphere into simple molecules in the soil and water, which get converted to more complex molecules in living beings and back again to the simple nitrogen molecule in the atmosphere.