The present invention relates to a magnesium alloy, the corrosion characteristics of which are controlled, comprising magnesium (Mg) and an element other than the magnesium (Mg), and having a magnesium phase and a phase consisting of magnesium and a dissimilar element, wherein the difference in electric potential between the magnesium phase and the phase consisting of the magnesium and the dissimilar element is more than 0 and less than 0.2 V.