Denitrifying bacteria live deep in soil and in aquatic sediments where conditions make it difficult for them to get oxygen. The denitrifying bacteria use nitrates as an alternative to oxygen, leaving free nitrogen gas as a byproduct. They close the nitrogen cycle!
Other ways that nitrogen returns to the atmosphere…