After laser irradiation, the nanocomposite can directly kill tumor cells due to PTT and trigger antitumor immune response synergistically by IDO inhibition as well as PD-L1 blockade in CT26 colon cancer cells. Here, CD274 is linked to neoplasm.