The invention relates to a magnesium alloy containing (in % by weight) more than 0.0 to 7.0% zinc, optionally more than 0.0 to 1.0% zirconium, optionally more than 0.0 to 1.0% calcium, optionally more than 0.0 to 1.0% manganese, optionally more than 0.0 to 0.5% silicon, optionally more than 0.0 to 1.0% silver, a max. up to 0.5% aluminum and at least one element selected from the group comprising more than 0.05 to 0.6% yttrium, more than 0.05 to 4.0% ytterbium, more than 0.05 to 4.0% gadolinium, with the residue being magnesium and impurities due to production. The invention also relates to a use of a magnesium alloy of this type and an implant therefrom and a method for producing a body of a magnesium alloy according to the invention.