Animal studies and analysis of human data reveal a link between vitamin D deficiency and an increased risk of both opioid addiction and sun-seeking behaviors.