We aimed to study (1) to what extent the influence of low sun exposure on multiple sclerosis (MS) risk is mediated by low vitamin D levels; (2) whether low sun exposure or vitamin D deficiency act synergistically with HLA-DRB1*15:01 and absence of HLA-A*02:01. Here, HLA-A is linked to vitamin D deficiency.