The present invention proposes an implant, in particular an intraluminal endoprosthesis, having a body, comprising at least one at least largely biodegradable metallic material, in particular magnesium or a magnesium alloy. To improve the degradation behavior, the implant has a first layer on at least a portion of its body surface, said layer containing a hydrogen-binding material, preferably palladium. Furthermore, methods for producing such an implant are given.