Lightning also converts nitrogen gas to nitrate compounds. The Haber process converts nitrogen gas intoammonia used in fertilizers. Ammonia is converted to nitrates by nitrifying bacteria in the soil. ... Higher only: In some conditions denitrifying bacteriain the soil break down nitrates and return nitrogen to the air.