The present invention relates to a magnesium alloy having controlled corrosion resistance properties, which comprises magnesium (Mg) and an alloying element and includes a magnesium phase and a phase composed of magnesium and the alloying element, wherein the difference in electrical potential between the magnesium phase and the phase composed of magnesium and the alloying element is greater than 0 V but not greater than 0.2 V.