The main groups of Mg alloys used in industry are Mg-Al-Zn, Mg-Ca, and Mg-REEs (rareearth elements) alloys . The AZ-series Mg-Al-Zn alloys account for more than 90% of currently used magnesium alloys . Alloying with aluminum makes it possible to increase the strength, hardness, casting properties, and corrosion resistance of magnesium alloys . The microstructure of such alloys is a solid solution of aluminum and β-phase (Mg17Al12) in Mg, the presence of which increases the corrosion potential and reduces its corrosion rate.