Mechanistic study indicated that the combined treatment of photothermal therapy and glutathione depletion based on this hydrogel efficiently induced cell pyroptosis through both caspase-1/GSDMD and caspase-3/GSDME pathways, thereby triggering the repolarization of tumor-associated macrophages from M2 to M1. This evidence concerns the gene CASP3 and neoplasm.