Cell pyroptosis has a reciprocal relationship with various cancer treatment modalities such as chemotherapy. However, the tumor microenvironment, characterized by hypoxia, substantially restricts the development and application of tumor therapies that integrate cell pyroptosis. Therefore, the cascade amplification of oxidative stress by interfering with redox homeostasis in tumors may be a promising approach. In this study, black phosphorus (BP) nanosheets and a glutathione peroxidase 4 inhibitor (RSL3) were coloaded into a thermosensitive PDLLA-PEG-PDLLA (PLEL) hydrogel (RSL3/BP@PLEL). Owing to the photothermal property of BP nanosheets, the RSL3/BP@PLEL hydrogel may trigger the release of loaded drugs in a more controllable and on-demand manner. Investigation of the antitumor effect in a mouse liver tumor model demonstrated that local injection of the hydrogel formulation in combination with near infrared laser irradiation could efficiently suppress tumor growth by interfering with the redox balance in tumors. 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. Overall, we developed a biocompatible and biodegradable hydrogel formulation for application in combination cancer treatment, providing a new platform for enhancing the efficacy of cancer therapy by amplifying cell pyroptosis and apoptosis.