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. The gene discussed is CD274; the disease is neoplasm.