Abstract This paper carried out X-ray diffraction analysis of dark gray film on the surface of magnesium strip of Peony brand(43 mm×3 mm), which showed that the compositions of dark gray film were Mg(OH)2 and Mg. Moreover, this paper analyzed the formation and coloration mechanism of dark gray film, and verified the theoretical analysis by simulated experiment results.