Despite numerous advantages, the high reactivity and low corrosion resistance of magnesium alloys limit their practical applications . The main factors affecting the corrosion susceptibility of Mg alloys are local galvanic corrosion due to galvanic coupling between the alloy's matrix and IMPs and the low protective ability of a surface oxide film (the Pilling-Bedworth ratio is 0.81) formed of the surface .