This increased dementia risk was observed in sensitivity analyses restricted to extra-CNS infections, when reverse causation was minimised in analyses restricted to infections more than 10 years before dementia onset, and after adjustments for comorbidities, lifestyle-related factors, and apolipoprotein E genotype. This evidence concerns the gene APOE and dementia.