Acid mine drainage (AMD) causes major environmental problems and consequently, several treatments are proposed, favoring the passive systems because of their many advantages. The main goal of these procedures is the neutralization and removal of potentially toxic elements (PTE), yet little is known about the changes in the microbial assemblages in response to the hydrochemical variations during the treatments. Therefore, the main objective of this research was to determine the changes in the diversity and structure of the prokaryotic assemblages in a hybrid abiotic and biological (wetland) passive treatment system. The 16S rRNA gene survey showed that the AMD coming from the mine (pH 2.6) was mainly composed of acidophilic genera such as Acidithiobacillus, Leptospirillum, Ferritrophicum, and Cuniculiplasma (up to 76 % relative abundance). In the abiotic treatment, Acidiphilium was dominant in the sections with limestone filters (pH 2.2–4.8), followed by Limnobacter in the subsequent dolomite/limestone and phosphoric rock filters (pH 5.2–5.8). In these abiotic passive treatment sections, the microbial assemblage showed a limited diversity and richness. However, when the treated AMD reached the two final wetlands (pH ~6.8), the microbial diversity and richness increased, suggesting that further bioattenuation mechanisms might be occurring. Limnobacter and Novosphingobium were the main bacterial genera in the water samples of the wetland sections (Arundo donax). These changes in the composition of the microbial assemblages were highly correlated with the pH and Eh values during the treatment (p-value <0.001); however, the concentration of metal(loid)s such as Al, Cd, Fe, Mn, Ni, and Zn were also significantly related (p-value <0.05). In conclusion, the studied passive AMD treatment system enhanced the chemical quality of the treated AMD, showing high removal efficiencies for Al and Fe (> 99 %), and increasing the microbial diversity and richness in the effluent.