The immunosuppressive tumor microenvironment (TME) has become a major challenge in cancer immunotherapy, with abundant tumor-associated macrophages (TAMs) playing a key role in promoting tumor immune escape by displaying an immunosuppressive (M2) phenotype. Recently, it was reported that M1 macrophage-derived nanovesicles (M1NVs) can reprogram TAMs to an anti-tumor M1 phenotype, thereby significantly alleviating the immunosuppressive TME and enhancing the anti-tumor efficacy of immunotherapy. Herein, we developed M1NVs loaded with mesoporous dopamine (MPDA) and indocyanine green (ICG), which facilitated the recruitment of M2 TAMs through synergistic photothermal and photodynamic therapy. Thereafter, M1NVs can induce M1 repolarization of TAMs, resulting in increased infiltration of cytotoxic T lymphocytes within the tumor to promote tumor regression. This study investigated the effect of phototherapy on the immune environment of liver cancer using single-cell RNA sequencing (scRNA-seq) by comparing HCC tissues before and after MPDA/ICG@M1NVs + NIR treatment. The results showed significant shifts in cell composition and gene expression, with decreases in epithelial cells, B cells, and macrophages and increases in neutrophils and myeloid cells. Additionally, gene analysis indicated a reduction in pro-inflammatory signals and immunosuppressive functions, along with enhanced B-cell function and anti-tumor immunity, downregulation of the Gtsf1 gene in the epithelial cells of the MPDA/ICG @M1NVs + NIR group, and decreased expression of the lars2 gene in immune subpopulations. Eno3 expression is reduced in M1 macrophages, whereas Clec4a3 expression is downregulated in M2 macrophages. Notably, the B cell population decreased, whereas Pou2f2 expression increased. These genes regulate cell growth, death, metabolism, and tumor environment, indicating their key role in HCC progression. This study highlights the potential for understanding cellular and molecular dynamics to improve immunotherapy.Graphical