Uncontrolled programmed polarization of macrophages plays an important role in chronic diabetic wound healing. Therefore, correcting programmed macrophage polarization while inducing new tissue remodelling through materials and preventing scar formation is desirable. Herein, a composite hydrogel brake that enables spatiotemporal regulation of the immune microenvironment was constructed to promote skin tissue regeneration. The system was based on thiolated hyaluronic acid to reshape the programmed polarization of macrophages, methacrylate gelatin as a mechanical support, and poly (L-lactic acid) nanoparticles loaded with TGF-β receptor antagonists to inhibit scar formation. Notably, the composite hydrogel acts as a double brake: in the early stage, self-induced M2-type polarization is achieved with the help of thiols; the TNF and NLRP signalling pathways are downregulated; and the immune microenvironment is regulated. During tissue remodeling, the long-term biological effect of TGF-β secretion by M2-type macrophages is interrupted by the slow release of antagonists, which inhibits excessive collagen deposition and prevents scar formation. The dual effect of restraint on reprogramming macrophage polarization and inhibiting scar formation was further confirmed in a diabetic rat skin defect model. Therefore, based on the immunological mechanism, a composite hydrogel brake was specifically designed to regulate the immune microenvironment, induce new tissue remodelling, and provide a promising clinical strategy for treating chronic diabetic wounds.