A nickel-phosphor coating was prepared on the surface of AZ91D magnesium alloy by electroless plating.The coating was so uniform and dense that it had no obvious surface defects.The structure of the coating was single phase (Ni) by X-ray diffraction and the adhesion was good by quenching.By dynamic potential polarization,it was shown that the free corrosion potential of the coating approached -0.4 V(SCE) and it had evident passivation.The coating had better corrosion resistance than the substrate,and had extensive application prospect.