An anticorrosion conversion coating on metal magnesium surface was prepared using immersion method in an aqueous solution containing mainly phytic acid. The coating after the preparation could be dry in the air without a rinse process using water in the final stage. Hence there is no discharge of waste water and waste gas in the whole process. Influence of several factors on the anticorrosion performance of coating was tested. And optimal parameters in the coating formation process were obtained from orthogonal test. The results indicated that the coating had better corrosion resistance, when the solution contained 3% phytic acid, and the immersion time is 7 minutes and the PH value was 3.5. The surface conversion coating was characterized by SEM and EDS. The conversion coating is better than the traditional chromate passive film by testing corrosion speed of coatings using hydrogen evolution method. The technology of the environment-friendly conversion coating containing phytic acid has the potential to be a new anti-corrosion technology for magnesium surface.