Smart zwitterionic coatings with precise pH-responsive antibacterial functions for bone implants to combat bacterial infections† Hydrophilic antifouling coatings based on zwitterionic polymers have been widely applied for the surface modification of bone implants to combat biofilm formation and reduce the likelihood of implant-related infections. However, their long-term effectiveness is significantly limited by the lack of effective and precise antibacterial activity.