Open wounds are susceptible to bacterial infections, and antibiotics are commonly used to treat these infections. However, widespread use of antibiotics will easily induce bacterial resistance. Green antibacterial agents serve as excellent alternative for antibiotics in infection therapy. In this work, polydopamine (PDA) was used to modify the surface of ZIF-8, which not only enhances the water stability of Zeolitic imidazolate framework-8(ZIF-8) but also improves its photocatalytic and photothermal capabilities. ZIF-8@PDA was incorporated into carboxylated chitosan (CCS) films as an antibacterial agent, the resulting ZIF-8@PDA-CCS films exhibit excellent ionic/photocatalytic/photothermal antibacterial performance. The film exhibited an impressive 99% in vitro bacterial inhibition rate. After treatment with ZIF-8@PDA-CCS, the bacteria in infected wounds can be completely suppressed. These findings suggest that ZIF-8@PDA-CCS could serve as a potentional antibacterial dressing.