An implant made in total or in parts of a biodegradable magnesium alloy consisting of Y: 2.0-6.0% by weight, Nd: 1.5-4.5% by weight, Gd: 0-4.0% by weight, Dy: 0-4.0% by weight, Er: 0-4.0% by weight, Zr: 0.1-1.0% by weight, Li: 0-0.2% by weight, Al: 0-0.3% by weight, under the condition that a) a total content of Er, Gd and Dy is in the range of 0.5-4.0% by weight and b) a total content of Nd, Er, Gd and Dy is in the range of 2.0-5.5% by weight, the balance being magnesium and incidental impurities up to a total of 0.3% by weight.