Nitrogen that we think of and want in the soil mostly comes from ammonium compounds which are found in good quantities in anaerobic environments.
Also there are many free style bacteria that go merrily along all on their own, these guys can operate as either aerobic or anaerobic organisms, thus they can utilize a good number of different compounds to get their
carbon and nitrogen from.
most acidic soil is made that way sulfur compounds or nitrogen compounds which release nitric acid or sulfuric acid as a by product of these bacteria using those compounds as a food source.
Redhawk