Cu and Ni impurities in Mg alloys are deleterious contaminants that reduce the corrosion resistance of the alloy. Mg2Cu and Mg2Ni precipitates can cause significant anodic dissolution of the Mg matrix, owing to their potential difference. Suppression of these phases can prevent the deterioration of corrosion resistance. The neutralization of these impurities through the formation of Mg–Zn intermetallic phases has been studied, because the atomic radii of Cu and Ni are similar to that of Zn. As a result, the MgZn2 phase may precipitate during the rapid cooling that occurs during the solidification of the Mg–6 mass% Zn alloy, and introduce substitutional impurity atoms in the crystal lattice. Mg(Zn, Cu)2 and Mg(Zn, Ni)2 phases can be formed instead of Mg2Cu and Mg2Ni, in the presence of both of Zn and these impurities. The microstructures and corrosion properties of the Mg–6 mass% Zn alloy with various Cu or Ni concentrations are investigated in this work. The Cu and Ni impurities are concentrated into MgZn2 phase in the Mg–6 mass% Zn alloy without Mg2Cu or Mg2Ni formation when the concentrations of these impurities are within acceptable limits. Consequently, the corrosion rate of the Mg–6 mass% Zn alloy with 1.4 mass% Cu or 0.25 mass% Ni is almost the same as that of the alloy without Cu and/or Ni contaminations.