• The polyMOF (CuPP-PELA) composite was prepared by in situ ROP reaction first time. • The in situ formed PELA could accelerate the degradation of MOF (CuPP). • The burst release of Curcumin under NIR sensitize the photothermal sterilization. • Curcumin gradually released without NIR remodulate the immune microenvironment. Chronic wounds, especially those caused by drug-resistant bacteria, remain mostly intractable to existing treatments. Photothermal therapy, apart from the additional inflammation it may cause, exhibits potent ability to efficiently destroy drug-resistant bacteria. A system capable of thermal therapy together with active regulation of the repairing process could be a potentially effective treatment for these wounds. Here we developed a highly integrated hydrogel made of curcumin loaded copper-tetrakis(4-carboxyphenyl)porphyrin metal–organic framework and poly (ethylene glycol)-poly(ε-caprolactone-co-lactide) hybrid by in situ ring-opening polymerization. It combines photothermal effect, immune modulatory, hemostasis and temperature-sensitive sol–gel transition capacity. This multifunctional polymer-metal–organic framework (polyMOF) hydrogel dressing showed the ability to completely heal drug-resistant bacteria infected wounds within 14 days and could be an effective and biocompatible material for chemo-photothermal therapy against chronic wounds. Moreover, our strategy to prepare the polyMOF hybrid may provide a universal approach for the development of multifunctional gels with great significance in clinical application.