The invention relates to a bone implant which comprises a magnesium-containing metallic material having a reduced corrosion rate and inorganic bone cement, and to methods and a kit for producing the bone implant. With a method according to the invention, it is possible to obtain a bone implant which comprises inorganic bone cement and a magnesium-containing metallic material with a corrosion-inhibiting coating which contains magnesium-ammonium phosphates. In the method according to the invention, a magnesium-containing metallic material, of which the surface has a magnesium oxide layer and/or a magnesium salt layer, is combined with inorganic bone cement in order to generate a solid composite material that comprises the inorganic bone cement and the magnesium-containing metallic material. The inorganic bone cement contains inorganic powder constituents, which set in the presence of water to form a solid, and water-soluble phosphate-ion-containing salts, preferably water-soluble phosphate-ion-containing and ammonium-ion-containing salts. According to the invention, the magnesium-containing metallic material is brought into contact with water before and/or during the combination with the inorganic bone cement in the presence of water-soluble ammonium-ion-containing and phosphate-ion-containing salts. Moreover, the inorganic bone cement is set by being brought into contact with water.