A study in Nature Aging on electronic health records from 1.7 million people in New Zealand reveals that most patients with dementia have a history of hospital-treated infection. In a dementia-free population, individuals with a severe infection were at a threefold-higher risk of dementia even 25 years later.