In this paper, micro-arc oxidation (MAO) coating is prepared on SLM AlSi10Mg alloy to improve its corrosion performance. The microstructure, composition, and electrochemical properties of the substrate and the coating at different oxidation times are analyzed. The results show that the MAO coating is mainly composed of Al, γ-Al2O3, α-Al2O3, and amorphous phases. At an oxidation time of 10 min, the coating achieves its maximum density. Additionally, the corrosion current density of the coating decreases by 5 orders of magnitude, the resistance value increases by 3 orders of magnitude, and the corrosion resistance is the best. Furthermore, the coating on the XY-plane exhibits better corrosion resistance compared to the coating on the XZ-plane.