BackgroundSleep quality is considered to be associated with cognitive function for older adults, but little is known about whether living with others can buffer mild cognitive impairment in older adults with poor sleep quality. The objective of this study was to examine the role of living arrangements in sleep quality and cognitive function among older adults aged 65 and over.Methods2,859 older adults over 65 years old were selected by using multi-stage stratified sampling method. Cognitive function and sleep quality were measured using Mini-Mental State Examination (MMSE) and Pittsburgh Sleep Quality Index (PSQI). Binary logistic regression was performed to examine the relationship between sleep quality and mild cognitive impairment, and the interaction effects of sleep quality and living arrangements on mild cognitive impairment stratified by gender.ResultsPoor sleep quality was associated with mild cognitive impairment among men and women regardless of living arrangements. The significantly protective role of living with others in reducing the incidence of mild cognitive impairment was found in men with poor sleep quality, but not in women.ConclusionTargeted support for older adults with poor sleep quality may be effective in preventing mild cognitive impairment, and gender differences should be taken into account when promoting cohabitations.