Complete cycling of mineral nitrogen (N) in soil requires the interplay of microorganisms performing nitrification and denitrification, whose activity is increasingly affected by extreme rainfall or heat brought about by climate change. In a pristine forest soil, a gradual increase in soil temperature from 5 to 25 degrees C in a range of water contents stimulated N turnover rates, and N gas emissions were determined by the soil water-filled pore space (WFPS). NO and N(2)O emissions dominated at 30% WFPS and 55% WFPS, respectively, and the step-wise temperature increase resulted in a threefold increase in the NO(3)(-) concentrations and a decrease in the NH(4)(+) concentration. At 70% WFPS, NH(4)(+) accumulated while NO(3)(-) pools declined, indicating gaseous N loss. AmoA- and nirK-gene-based analysis revealed increasing abundance of bacterial ammonia oxidizers (AOB) with increasing soil temperature and a decrease in the abundance of archaeal ammonia oxidizers (AOA) in wet soil at 25 degrees C, suggesting the sensitivity of the latter to anaerobic conditions. Denitrifier (nirK) community structure was most affected by the water content and nirK gene abundance rapidly increased in response to wet conditions until the substrate (NO(3)(-)) became limiting. Shifts in the community structure were most pronounced for nirK and most rapid for AOA, indicating dynamic populations, whereas distinct adaptation of the AOB communities required 5 weeks, suggesting higher stability.