With the adjustment for demographics, APOE ε4 genotype, sun-exposure time, and blood collection season in Model 1, serum 25(OH)D concentrations were inversely associated with the risk of all-cause dementia in a dose-dependent manner (Ptrend < 0.001). Here, APOE is linked to dementia.