Biofilm infection and impaired healing of chronic wounds are posing tremendous challenges in clinical practice. In this study, we presented a versatile antimicrobial hydrogel capable of delivering nitric oxide (NO) in a controllable manner to dissipate biofilms, eliminate microorganisms, and promote the healing of chronic wounds. This hydrogel was constructed by Schiff-base crosslinking of oxidized dextran and antimicrobial peptide ε-poly-lysine, further encapsulating photothermal nanoparticles bearing NO donor. This hydrogel could continuously and slowly release NO, effectively dissipating biofilms, and promoting the proliferation of mouse fibroblasts and the migration of endothelial cells. Upon exposure to NIR laser irradiation, the hydrogel generated hyperthermia and rapidly released NO, resulting in the efficient elimination of a broad spectrum of drug-resistant Gram-positive/negative bacterial and fungal biofilms through the synergistic effects of NO, photothermal therapy, and the antibacterial peptide. Notably, the hydrogel demonstrated exceptional in vivo therapeutic outcomes in accelerating the healing process of mice diabetic wounds infected with methicillin-resistant Staphylococcus aureus by successfully eliminating biofilm infection, regulating inflammation, and facilitating angiogenesis and collagen deposition. Overall, this proposed hydrogel shows great promise in accommodating the various demands of the complex repair process of chronic wounds infected with biofilms. Statement of significanceThe presence of biofilm infections and underlying dysfunctions in the healing process made chronic wound become stuck in the inflammation stage and difficult to heal. This work developed a NIR laser-modulated three-stage NO-releasing versatile antimicrobial hydrogel (DEPN) exhibiting good therapeutic efficacy for chronic wound. This DEPN hydrogel could inherently and slowly released NO to disperse biofilm. Upon NIR laser irradiation, the DEPN hydrogel generated hyperthermia and induced a rapid burst release of NO effectively eliminating a broad spectrum of drug-resistant bacterial and fungal biofilms. Subsequently, the DEPN hydrogel continually release NO slowly to promote the tissue remolding. This DEPN hydrogel displays great potential in treatment of chronic wounds infected with biofilm.