A biocorrodible implant includes a base formed from magnesium or a biocorrodible magnesium alloy, whose surface has a corrosion-inhibiting coating. A diffusion layer, which covers the base, differs in composition from the implant material. The diffusion layer contains at least one metallic element of the implant material and at least one corrosion-inhibiting element selected from the group of Al, Zn, Ca, Si, In, Mn, Sc and RE, where RE stands for rare earth metals. The implant optionally includes a metal layer of at least one of the corrosion-inhibiting elements selected from the group of Al, Zn, Ca, Si, In, Mn, Sc and RE covering the diffusion layer, and a passivating layer of metal oxides, metal nitrides or metal fluorides of at least one of the corrosion-inhibiting elements selected from the group of Al, Zn, Ca, Si, In, Mn, Sc and RE covering the diffusion layer or the metal layer.