This study finds that exposure to economic downturns around retirement is associated with a long-lasting decline in cognitive function in later life. Policies mitigating the impact of downturns on older workers may help to maintain cognitive function in later life.