The process by which bacteria in soil and water oxidize ammonia and ammonium ions and form nitrites and nitrates. Because the nitrates can be absorbed by more complex organisms, as by the roots of green plants, nitrification is an important step in the nitrogen cycle .