The healing of infected wounds is challenging for patients. In this paper, a hybrid hydrogel with strong tissue adhesion, self-healing, and antibiosis without antibiotics was developed as a dressing to promote the healing of infected chronic wounds. Acrylamide (PAM) was polymerized with N,N-methylene bis(acrylamide) (BIS) as the substrate, and self-assembled nanoparticles of carboxymethyl chitosan and chlorin e6 (CMCS/ Ce6 NPs) trapped with magnesium (Mg 2+ ) ions were dispersed in the hydrogel substrate. CMCS/Ce6 NPs provided favorable photodynamic antibiosis via the production of reactive oxygen species (ROS) under NIR irradiation. The hybrid hydrogels exhibited excellent self-healing properties, diverse adhesion, and biocompatibility. The in vivo results indicated that the hybrid hydrogel accelerated wound healing significantly via comprehensive factors of photodynamic antibiosis of CMCS/Ce6 NPs, cell proliferation promotion by Mg 2+ , good bioadhesion, and moisture retention of the PAM hydrogel, which promoted collagen deposition and blood vessel maturation.