In the nitrogen cycle, the formation of ammonia compounds.