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. Here, YAP1 is linked to neoplasm.