Microbial communities are key drivers of carbon, sulfur, and nitrogen cycling in coastal ecosystems, where they are subjected to dynamic shifts in substrate availability and exposure to toxic compounds. However, how these shifts affect microbial interactions and function is poorly understood. Unraveling such microbial community responses is key to understand their environmental distribution and resilience under current and future disturbances. Here, we used metagenomics and metatranscriptomics to investigate microbial community structure and transcriptional responses to prolonged ammonium deprivation, and sulfide and nitric oxide toxicity stresses in a controlled bioreactor system mimicking coastal sediment conditions. Ca. Nitrobium versatile, identified in this study as a sulfide-oxidizing denitrifier, became a rare community member upon ammonium removal. The ANaerobic Methanotroph (ANME) Ca. Methanoperedens nitroreducens showed remarkable resilience to both experimental conditions, dominating transcriptional activity of dissimilatory nitrate reduction to ammonium (DNRA). During the ammonium removal experiment, increased DNRA was unable to sustain anaerobic ammonium oxidation (anammox) activity. After ammonium was reintroduced, a novel anaerobic bacterial methanotroph species that we have named Ca. Methylomirabilis tolerans outcompeted Ca. Methylomirabilis lanthanidiphila, while the anammox Ca. Kuenenia stuttgartiensis outcompeted Ca. Scalindua rubra. At the end of the sulfide and nitric oxide experiment, a gammaproteobacterium affiliated to the family Thiohalobacteraceae was enriched and dominated transcriptional activity of sulfide:quinone oxidoreductases. Our results indicate that some community members could be more resilient to the tested experimental conditions than others, and that some community functions such as methane and sulfur oxidation coupled to denitrification can remain stable despite large shifts in microbial community structure. Further studies on complex bioreactor enrichments are required to elucidate coastal ecosystem responses to future disturbances.