decomposers
When plants and other organisms die, decomposers break down their remains. In the process, they release nitrogen in the form of ammonium ions. Nitrifying bacteria change the ammonium ions into nitrates. Some of the nitrates are used by plants. Some are changed back to nitrogen gas by denitrifying bacteria.