Medical titanium-based (Ti-based) implants in the human body are prone to infection by pathogenic bacteria, leading to implantation failure. Constructing antibacterial nanocoatings on Ti-based implants is one of the most effective strategies to solve bacterial contamination. However, single antibacterial function was not sufficient to efficiently kill bacteria, and it is necessary to develop multifunctional antibacterial methods. This study modifies medical Ti foils with Cu-doped Co3O4 rich in oxygen vacancies, and improves their biocompatibility by polydopamine (PDA/Cu-Ov-Co3O4). Under near-infrared (NIR) irradiation, nanocoatings can generate •OH and 1O2 due to Cu+ Fenton-like activity and a photodynamic effect of Cu-Ov-Co3O4, and the total reactive oxygen species (ROS) content inside bacteria significantly increases, causing oxidative stress of bacteria. Further experiments prove that the photothermal process enhances the bacterial membrane permeability, allowing the invasion of ROS and metal ions, as well as the protein leakage. Moreover, PDA/Cu-Ov-Co3O4 can downregulate ATP levels and further reduce bacterial metabolic activity after irradiation. This coating exhibits sterilization ability against both Escherichia coli and Staphylococcus aureus with an antibacterial rate of ca. 100%, significantly higher than that of bare medical Ti foils (ca. 0%). Therefore, multifunctional synergistic antibacterial nanocoating will be a promising strategy for preventing bacterial contamination on medical Ti-based implants.