Results indicate a stronger association between severe depressive symptoms and cognitive impairment among older Chinese males. Our study suggests that reducing loneliness can help prevent cognitive impairment in older men, and improving sleep quality can help improve cognitive function in older women.