BackgroundImmunogenic cell death (ICD) induced by different cancer treatments has been widely evaluated to recruit immune cells and trigger the specific antitumor immunity. However, cancer associated fibroblasts (CAFs) can hinder the invasion of immune cells and polarize the recruited monocytes to M2-type macrophages, which greatly restrict the efficacy of immunotherapy (IT).MethodsIn this study, an injectable hydrogel induced by copper (Cu) has been designed to contain antibody of PD-L1 and nitric oxide (NO) donor. The therapeutic efficacy of hydrogel was studied in 4T1 cells and CAFs in vitro and 4T1 tumor-bearing mice in vivo. The immune effects on cytotoxic T lymphocytes, dendritic cells (DCs) and macrophages were analyzed by flow cytometry. Enzyme-linked immunosorbent assay, immunofluorescence and transcriptome analyses were also performed to evaluate the underlying mechanism.ResultsDue to the absorbance of Cu with the near-infrared laser irradiation, the injectable hydrogel exhibits persistent photothermal effect to kill cancer cells. In addition, the Cu of hydrogel shows the Fenton-like reaction to produce reactive oxygen species as chemodynamic therapy, thereby enhancing cancer treatment and amplifying ICD. More interestingly, we have found that the released NO can significantly increase depletion of CAFs and reduce the proportion of M2-type macrophages in vitro. Furthermore, due to the amplify of ICD, injectable hydrogel can effectively increase the infiltration of immune cells and reverse the immunosuppressive tumor microenvironment (TME) by regulating CAFs to enhance the therapeutic efficacy of anti-PD-L1 in vivo.ConclusionsThe ion induced self-assembled hydrogel with NO could enhance immunotherapy via amplifying ICD and regulating CAFs. It provides a novel strategy to provoke a robust antitumor immune response for clinical cancer immunotherapy.Graphical AbstractSupplementary InformationThe online version contains supplementary material available at 10.1186/s40824-023-00389-4.