This process is called Denitrification. The process is undertaken by the denitrifying bacteria, whose action is converting nitrates in the soil to free atmospheric nitrogen and therefore, depleting soil fertility and reducing agricultural productivity. Examples of denitrifying bacteria are thiobacillus denitrificans, micrococcus denitrificans among others.
Pieces of genes can be inserted into the genetic material of prokaryotes so that they will make the protein products encoded in the genes or copies of the genes themselves