Subterranean estuaries (STEs) modulate the chemical composition of continental groundwater before it reaches the coast but their microbial community is poorly known. Here, we explored the microbial ecology of two neighbouring, yet contrasting STEs (Panxon and Ladeira STEs Ria de Vigo, NW Iberian Peninsula). We investigated microbial composition (16S rRNA gene sequencing), abundance, heterotrophic production and their geochemical drivers. 10,150 OTUs and 59 phyla were retrieved from porewater sampled during four surveys covering each STE seepage face. In both STEs, we find a very diverse microbial community composed by abundant cosmopolitans and locally restricted rare taxa. Porewater oxygen and dissolved organic matter are the main environmental predictors of microbial community composition. More importantly, the high variety of benthic microbiota links to biogeochemical processes of different elements in STEs. The oxygen-rich Panxon beach showed strong associations of the ammonium oxidizer archaea Nitrosopumilales with the heterotrophic community, thus acting as a net source of nitrogen to the coast. On the other hand, the prevailing anoxic conditions of Ladeira beach promoted the dominance of anaerobic heterotrophs related to the degradation of complex and aromatic compounds, such as Dehalococcoidia and Desulfatiglans, and the co-occurrence of methane oxidizers and methanogens.