A magnesium alloy includes 3 to 7.0% Zn, 0.001 to 0.5% Ca, the remainder being magnesium containing impurities, which promote electrochemical potential differences and/or the formation of intermetallic phases, in a total amount of no more than 0.005 of Fe, Si, Mn, Co, Ni, Cu, Al, Zr and P, wherein the alloying elements are selected from the group of the rare earths having the ordinal numbers 21, 39, 57 to 71 and 89 to 103 in a total amount of no more than 0.001% by weight.