From the early days of the COVID-19 pandemic, researchers examining the question of why some people were better protected from the infection than others began to look at a possible role for vitamin D.