We show for the first time that melatonin attenuates PD-L1 expression through suppressing YAP/TAZ and thereby modulating tumor immunity in KRAS-mutant NSCLC. The gene discussed is CD274; the disease is neoplasm.