Decomposers break down dead animals, urea and egested materials which releases nitrogen into the soil as ammonia.
Nitrifying bacteria convert nitrates into nitrogen.
Denitrifying bacteria break down nitrates into nitrogen which is then released into the atmosphere.
Here is a diagram to help explain:
![]() |
commons.wikimedia |
This animation is very helpful:
https://www.classzone.com/books/ml_science_share/vis_sim/em05_pg20_nitrogen/em05_pg20_nitrogen.swf