Mg alloys, such as AZ91 (Mg-9mass%Al-1mass%Zn), are lightweight materials with excellent mechanical properties. The applications of Mg alloys in automobiles could significantly contribute to reducing carbon dioxide emissions. Mg alloys are fully recyclable and abundantly available, which increases their desirability in light of rising environmental consciousness. However, the low corrosion resistance of Mg alloys is one of the major limitations to further applications.In Mg alloys, corrosion behavior is known to be related to the microstructure. During the real-time in situ observation of the corrosion process under galvanostatic polarization, filiform corrosion proceeded along the outside of the β phase (in lamellar α + β microstructure and along the α-mother phase 1. Furthermore, the β phase exhibited a higher potential in the OCPs of each phase and a small area with the boundary in 0.1 M NaCl at pH 8.0 2. Thus, the surface films of β phases was thought to suppress the corrosion of Mg alloys. Mg alloys can be treated by anodic oxidation or plasma electrolytic oxidation to obtain excellent corrosion resistance. The latter is similar to anodic oxidation but applies a higher voltage, which causes a discharge on the electrode surface and the resulting plasma modifies the oxide film significantly.In this study, anodic oxidation and plasma electrolytic oxidation were performed on AZ91D Mg alloy in alkaline solutions such as sodium phosphate. This study aims to compare the two methods in the same solution and to produce an Al-rich surface film with excellent corrosion resistance.In anodic oxidation, the size of the electrode area was approximately 1 cm2. The surface of the specimen was coated with epoxy resin, followed by paraffin. The reference electrode was Ag / AgCl (3.33 M KCl). The experiments were performed at 25 ℃. The scan rate of potentiodynamic polarization was set at 23 mV min-1. The starting potential was set at 20 mV lower than the open-circuit potential. The anodic oxidation treatments were terminated at 0 V, 3 V, and 5 V. Plasma electrolytic oxidation was performed with a liquid volume of 500 mL. The sample was mounted on a resin holder. The electrode surface was approximately 50 mm2. A Pt plate was used as the counter electrode. The sample and the counter electrode were fixed at a distance of 0.5 cm. A plasma-generating power supply was used. The solution was cooled down to 20 ℃ while the voltage was applied. The frequency and the pulse interval were adjusted. The voltage and type of solution were changed to produce the film. Z. Shao, M. Nishimoto, I. Muto, and Y. Sugawara, Corrosion Science, 192, 109834 (2021).Z. Shao, M. Nishimoto, I. Muto, and Y. Sugawara, Journal of Magnesium and Alloys, 11, 137-153 (2023).