We performed a mediation analysis of the effect of baseline BPF and WMHV (mediators) on the association between diabetes and dementia risk using linear and Cox models adjusted for age, sex, education level, hypertension, hypercholesterolemia, BMI, smoking and alcohol drinking status, APOE-ε4 status, and study site. At baseline, 8.8% of the participants had diabetes. This evidence concerns the gene APOE and dementia.