In this work, COF-919-mediated photodynamic and photothermal combination therapy elicits GPX4-related ferroptosis and gasdermin E (GSDME)-dependent pyroptosis, inducing an acute inflammatory response and boosting cancer immunotherapy. This evidence concerns the gene GSDME and cancer.