Plasma electrolytic oxidation (PEO) is a promising surface treatment for generating a thick, adherent coating on valve metals using an environmentally friendly alkaline electrolyte. In this study, the PEO method was used to modify the surface of AZ31 Mg alloy.