In humans, we show that vitamin D levels correlate with lower cancer incidence and that hallmarks of VDR activity are associated with better disease outcomes in cancer patients and improved responses to checkpoint blockade immunotherapy. Here, VDR is linked to cancer.