Abstract: | This study seeks prevent and alleviate the failure of magnesium alloy anodes in pipelines, which we suspect is a problem related to SRB. The electrochemical corrosion behaviour of two kinds of magnesium alloys, AZ31B and AZ63B, in 3.5 wt.% NaCl solution with sulphide or phosphide—the two main inorganic metabolites of sulphate-reducing bacteria—were studied by electrochemical tests combined with other characterisation methods such as scanning electron microscopy and X-ray diffraction. The results show that the corrosion film formed by inorganic metabolites of SRB’s initial stage of corrosion (1–3 d) can lead to the corrosion of magnesium alloys. However, the loose and porous corrosion product film cannot protect the substrate effectively. The inorganic metabolites in the solution can accelerate the corrosion of the surface of magnesium alloy after the corrosion products have fallen off. This study provides a theoretical basis for alleviating the premature failure of magnesium alloy anodes and for corrosion protection in the future. |