Figure 1. The nitrogen cycle. Nitrifying bacteria use oxygen and alkalinity to convert ammonia and nitrite into the less toxic byproduct, nitrate, which is then used by plants or returned to the atmosphere.