The presence of elevated ammonia levels is widely recognized as a significant contributor to process inhibition in biogas production, posing a common challenge for biogas plant operators. The present study employed a combination of biochemical, genome-centric metagenomic and metatranscriptomic data to investigate the response of the biogas microbiome to two shock loads induced by single pulses of elevated ammonia concentrations (i.e., 1.5 g NH 4 + /L R and 5 g NH 4 + /L R ). The analysis revealed a microbial community of high complexity consisting of 364 Metagenome Assembled Genomes (MAGs). The hydrogenotrophic pathway was the primary route for methane production during the entire experiment, confirming its efficiency even at high ammonia concentrations. Additionally, metatranscriptomic analysis uncovered a metabolic shift in the methanogens Methanothrix sp. MA6 and Methanosarcina f lavescens MX5, which switched their metabolism from the acetoclastic to the CO 2 reduction route during the second shock. Furthermore, multiple genes associated with mechanisms for maintaining osmotic balance in the cell were upregulated, emphasizing the critical role of osmoprotection in the rapid response to the presence of ammonia. Finally, this study offers insights into the transcriptional response of an anaerobic digestion community, specifically focusing on the mechanisms involved in recovering from ammonia-induced stress.