Calcium phosphate biocoatings were fabricated on the surface of magnesium alloy by micro-arc oxidation (MAO) technique. The properties of biocoatings related with MAO technics parameters and the electrolyte constitute. The surface morphology, constitute and friction coefficient were studied by SEM XRD and fret test machine. The results indicated that the optimum electrolyte was CaCO3-Na3PO4 contained 20g/L phosphate ions and 1.5 Ca/P ratio, and the optimum technics parameters was 350V oxidation voltage for10min, 500HZ pulse frequency and 1:10 in duty cycle. The main phase constitutes of the porous biocoatings contained were Mg, MgO, Mg3(PO4)2 and CaNaPO4. The anode polarization potential of the coating was -1.36V and enhanced about 0.29V compared with that of magnesium alloy substrate, which indicated that the biocoatings had better corrosion resistant properties. The friction coefficient of the biocoatings was 0.23 and decreased 0.15 compared with that of magnesium alloy substrate, which indicated that the biocoatings had better wear resistant properties. The biocoatings could induce hydroxyapatite to form on its surface after soaked in body fluid, which showed that the composite coatings owned good bioactivity.