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. This evidence concerns the gene KRAS and non-small cell lung carcinoma.