The relationship between multimorbidity and cognitive impairment is age-dependent but remains significant in the population aged 80 years or older. A healthy lifestyle may protect cognitive function regardless of the multimorbidity burden. These findings highlight the importance of targeting individuals with heavy multimorbidity burden and promoting a heathy lifestyle to prevent cognitive impairment in Chinese older population.