To study the effects of icariin contents on the characteristics of magnesium/ultrasonic micro-arc oxidation/chitosan/icariin (Mg/UMAO/CS/IC), and enhance the corrosion resistance of pure magnesium, Mg/UMAO/CS/IC coating was prepared using a combined method of UMAO with electrophoretic deposition (EPD) technique on the Mg substrate. The coatings were characterized by scanning electron microscopy (SEM), X-ray diffraction (XRD), atomic force microscopy (AFM) and Fourier transform infrared (FTIR) spectroscopy. Corrosion resistance was investigated by electrochemical impedance spectroscopy and potentiodynamic polarization in a simulated body fluid (SBF) solution. The results show that the UMAO coating is well sealed by CS/IC coating with a content of 0.4 g/L IC. The coatings with various IC contents all consists of Mg, MgO, CS and Mg2SiO4 phase. The corrosion current density of the coatings with various IC contents are at least one order of magnitude lower compared with that of Mg substrate, which implies that it can provide a more effective protection for Mg substrate. With a content of 0.4 g/L IC, the Mg/UMAO/CS/IC coating has the best corrosion resistance, evidenced by the minimum corrosion current density (1.667x10(-6) A/cm(2)). Mg/UMAO/CS/IC coating effectively solves the problem of high corrosion rate of Mg in clinical bone fixation applications.