On-demand release of STING agonists is the most important for cancer immunotherapy in a safe and effective manner, and we for the first time report the use of photothermal nanoplatforms to achieve this purpose. Here, STING1 is linked to cancer.