Denitrifying bacteria form a necessary part of the process known as denitrification as part of the nitrogen cycle, their primary purpose being to metabolise nitrogenous compounds, with the assistance of the nitrate reductase enzyme, to turn oxides back to nitrogen gas or nitrous oxides for energy generation.