A porous coating doped with copper and cobalt was prepared on the surface of titanium through plasma electrolytic oxidation. The coating not only improved the roughness and corrosion resistance of titanium but also exhibited good biological activity.