In this longitudinal, population-based prospective cohort study of 3,229 individuals with 17 years of follow-up, we found that cardiovascular risk factors such as higher BMI, lower HDL-C and stroke were associated with lower attention/executive function, while having an APOE ɛ4-allele was associated with poorer memory function. The gene discussed is APOE; the disease is stroke disorder.