This review provided some recent progress of the research on corrosion mechanisms of magnesium and its alloys and a basis for follow-on research. Galvanic corrosion, pitting corrosion, intergranular corrosion (IGC), filiform corrosion, crevice corrosion, stress corrosion cracking (SCC), and corrosion fatigue (CF) were discussed. The influence of metallurgical factors such as alloying elements, microstructure and secondary phases, processing factors such as heat treatment and weld, and environmental factors including temperature, relative humidity, solution pH values and concentration on corrosion were discussed. In particular, a mechanism of pitting corrosion caused by AlMn particles was proposed. The corrosion properties of AZ91D weld material were investigated.