The unsatisfactory corrosion properties of Mg-based alloys pose a significant obstacle to their widespread application. Plasma electrolytic oxidation (PEO) is a prevalent and effective coating method that produces a ceramic-like oxide coating on the surface of Mg-based alloys, enhancing their resistance to corrosion. Research has demonstrated that PEO treatment can substantially improve the corrosion performance of alloys based on magnesium in the short term.