Diabetic foot ulcers are a severe complication of diabetes, imposing a substantial burden on both health and the economy. Bacterial infections, high glucose levels, and the intricate microenvironment of oxidation collectively hinder the healing of diabetic wounds. Hydrogels responsive to the microenvironment have demonstrated significant advantages in treating diabetic wounds due to their ability to release drugs on demand. The study utilized modified pectin and hyaluronic acid to develop a self-recognizing and self-treating composite hydrogel. Within this hydrogel, insulin was encapsulated using a metal−organic framework with an ROS-responsive coating