The invention relates to a method for producing an anti-infective coating on implants that contain titanium or are composed of titanium. The aim of the invention is to provide a coating method with which it is possible, for implants made of titanium or that contain titanium, to combine the optimization of the mechanical properties achieved with the anodic oxidation type II with the optimization of the anti-infective properties. According to the invention, the implants are anodically oxidized in an alkaline solution, then metal having anti-infective properties is electrodeposited on said surface, and afterwards the oxide layer containing metal is solidified.