One embodiment of the invention relates to a coated implant having a base body composed of a biocorrodible magnesium alloy. The coating of the implant comprises:(i) a base layer, which is applied to the base body, composed of a basic polymer having a repeater unit that contains units of formula (1) or (2)and(ii) a polymeric cover layer that is applied directly to the base layer.