Air is about 78% nitrogen. Nitrogen is needed for life. It is an important part of proteins, DNA, and RNA. In plants, nitrogen is needed for photosynthesis and growth.  Nitrogen fixation is needed to change the nitrogen in air (N2) into forms that can be used by life. Most nitrogen fixation is done by micro-organisms called bacteria. These bacteria have an enzyme that combines N2 with hydrogen gas (H2) to make ammonia (NH3). Some of these bacteria live in the roots of plants (mostly legumes). In these roots, they make ammonia for the plant and the plant gives them carbohydrates. Other plants take nitrogen compounds out of the soil through their roots. All nitrogen in animals comes from eating plants.
Ammonium (NH4) in soil is made by nitrogen-fixing bacteria and decomposes, bacteria and fungi that break down dead life into its parts. This process is called ammonification. Ammonium has a positive charge. It easily joins to clay and humus in the soil. Ammonia and ammonium are poisonous to fish and other animals. Sewage and other waste-water is regularly measured because of this. If ammonia levels are too high, nitrification must happen.
Nitrification is the change of ammonia and ammonium to nitrite (NO2) and then to nitrate (NO3) by bacteria. Because nitrite and nitrate have a negative charge they do not easily join to soil and will wash out of the soil during rain and irrigation. High nitrate levels in drinking water is harmful for babies and can cause blue-baby syndrome.  High nitrate levels can also cause too much algae growth in lakes and pools. This can be harmful to fish and other water animals because the algae uses oxygen that the animals need. The use of fertilizers is controlled more and more because of this.
Where there is no oxygen, some bacteria will make nitrate into nitrogen gas (N2). This starts the nitrogen cycle over again. This process is called denitrification.
- Smil, V (2000). Cycles of Life. Scientific American Library, New York., 2000)
- Vitousek, PM; Aber, J; Howarth, RW; Likens, GE; Matson, PA; Schindler, DW; Schlesinger, WH; Tilman, GD (1997). "Human Alteration of the Global Nitrogen Cycle: Causes and Consequences". Issues in Ecology 1: 1-17.