Here, we used NIR-PIT to eliminate PD-L1-expressing TAMs and cancer cells in ovarian cancer xenografts. Here, CD274 is linked to cancer.