The morphology and the mass change of the AZ91D alloys matrix after pretreatment, the morphology and the phase composition of chemical conversion coatings formed by phosphate and stannate were studied using scanning electron microscope, X-ray diffraction and the mass loss method. The corrosion resistance of the coatings were studied by salt spay test and damp heat test. The results show that the phase composition of matrix before and after pretreatment is almost changeless and the mass diminishes a litter, the deep micro flaw appears near between α-Mg and β phase during acidic pickling. The phosphate chemical conversion coating is mainly composed of Mg, MgO and some amorphous phase, and the stannate conversion coating is crystal structure and mainly composed of Mg, Al12Mg17 and MgSnO3•3H2O. Results from salt spay test and damp heat test indicate that the two coatings also can provide good protection for the magnesium alloy matrix, and stannate is better than phosphate.