A magnesium alloy, implants and method for the production thereof. The magnesium alloy includes 1.5 to 7.0% by weight Zn, 0.5 to 3.5% by weight Al, the remainder being magnesium which contains impurities, which promote electrochemical potential differences and/or the formation of precipitations and/or intermetallic phases, in a total amount of no more than 0.0063% by weight of Fe, Si, Mn, Co, Ni, Cu, Zr, Y, Sc or rare earths having the ordinal numbers 21, 57 to 71 and 89 to 103, Be, Cd, In, Sn and/or Pb as well as P.