Currently, antibiotics are the most common treatment for bacterial infections in clinical practice. However, with the abuse of antibiotics and the emergence of drug-resistant bacteria, the use of antibiotics has faced an unprecedented challenge. It is imminent to develop nonantibiotic antimicrobial agents. Based on the cation−π structure of barnacle cement protein, a polyphosphazene-based polymer poly[(N,N-dimethylethylenediamine)-g-(N,N,N,N-dimethylaminoethyl p-ammonium bromide (ammonium bromide)-g-(N,N,N,N-dimethylaminoethyl acetate ethylammonium bromide)] (PZBA) with potential adhesion and inherent antibacterial properties was synthesized, and a series of injectable antibacterial adhesive hydrogels (PZBA−PVA) were prepared by cross-linking with poly(vinyl alcohol) (PVA). PZBA−PVA hydrogels showed good biocompatibility, and the antibacterial rate of the best-performed hydrogel reached 99.81 ± 0.04% and 98.80 ± 2.16% against Staphylococcus aureus and Escherichia coli within 0.5 h in vitro, respectively. In the infected wound model, the healing rate of the PZBA−PVA-treated group was significantly higher than that of the Tegaderm film group due to the fact that the hydrogel suppressed inflammatory responses and modulated the infiltration of immune cells. Moreover, the wound healing mechanism of the PZBA−PVA hydrogel was further evaluated by real-time polymerase chain reaction and total RNA sequencing. The results indicated that the process of hemostasis and tissue development was prompted and the inflammatory and immune responses were suppressed to accelerate wound healing. Overall, the PZBA−PVA hydrogel is shown to have the potential for infected wound healing application.