In this work, we aimed to edit the CD274 gene of HNSCC cells by optogenetics with second near-infrared (NIR-II) light, thereby reducing the CD274 expression and improving the efficacy of photo-immunogenic therapy. Here, CD274 is linked to head and neck squamous cell carcinoma.