The passivation of AZ91D Mg alloys by plasma anodization requires deliberate choice of process parameters due to the presence of large amounts of structural defects. We study the dependence of pore formation, surface roughness and corrosion resistance on voltage by comparing the direct current (DC) mode and the pulse wave (pulse) mode in which anodization is performed. In the DC plasma anodization mode, the thickness of the electrolytic oxide film of the AZ91D alloy is uneven. In the pulse mode, the thickness is relatively uniform and the formed thin film has a three-layer structure. The pulse mode creates less roughness, uniform thickness and improved corrosion resistance. Thus, the change of power mode from DC to pulse at 150 V decreases the surface roughness (Ra) from 0.9 μm to 0.1 μm and increases the corrosion resistance in rating number (RN) from 5 to 9.5. Our study shows that an optimal oxide film can be obtained with a pulse voltage of 150 V, which produces an excellent coating on the AZ91D casting alloy.