The deep and inner beds of solid tumors lack lymphocytic infiltration and are subjected to various immune escape mechanisms. Reversing immunosuppression deep within the tumor is vital in clinical cancer therapy, however it remains a huge challenge. In this work, we have demonstrated the use of a second window near-infrared (NIR(II)) photothermal treatment to trigger more homogeneous and deeper immunogenic cancer cell death in solid tumors, thereby eliciting both innate and adaptive immune responses for tumor control and metastasis prevention. Specifically, photothermal transducers with similar components, structures, and photothermal conversion efficiencies, but different absorptions in red light, NIR(I), and NIR(II) biowindows, were constructed by controlling the self-assembly of gold nanoparticles on fluidic liposomes. In vitro, photothermal treatments induced immunogenic cell death (ICD) that were accompanied by the release of damage-associated molecular patterns (DAMPs) regardless of the wavelength of incident lasers. In vivo, NIR(II) light resulted in a more homogeneous release and distribution of DAMPs in the deeper parts of the tumors. With the induction of ICD, NIR(II) photothermal therapy simultaneously triggered both innate and adaptive immune responses and enabled efficient tumor control with 5/8 of the mice remaining tumor-free in the cancer vaccination assay. Additionally, the NIR(II) photothermal treatment in combination with checkpoint blockade therapy exerted long-term tumor control over both primary and distant tumors. Finally, using systemically administered two-dimensional polypyrrole nanosheets as a NIR(II) transducer, we achieved striking therapeutic effects against whole-body tumor metastasis via a synergistic photothermal-immunological response.