Ceramic coatings were applied on the surface of AZ31 Mg alloy using plasma electrolytic oxidation procedure with distinct duty cycles (20%, 50%, and 80%) by a direct current mode in an alkaline electrolyte. The influence of the duty cycle on the corrosion performance of the coatings was studied in addition to their microstructures. In order to evaluate the corrosion performance of created coatings in different duty cycles, electrochemical impedance spectroscopy (EIS) and potentiodynamic polarization (PDP) measurements were measured in simulated body fluid (SBF).