Together, our data revealed a novel antitumor mechanism of melatonin in modulating the immunosuppressive tumor microenvironment by suppressing the YAP/PD-L1 axis and suggest the therapeutic potential of melatonin for treating NSCLC. Here, YAP1 is linked to non-small cell lung carcinoma.