An object of the invention is to provide a magnesium alloy having high strength and sufficient formability. A magnesium alloy mainly contains magnesium and has high tensile strength and high compression strength. The crystal grain structure of the alloy has a high angle grain boundary, and the Inside of the crystal grain surrounded by the high angle grain boundary is composed of subgrains.