This study examines the impact of living conditions on cognitive function in older adults in China, and explores the role of plant-based dietary patterns in mitigating the negative effects of poor living conditions. The key finding is that living in fair or poor conditions was associated with an increased risk of developing cognitive impairment, and this association was more pronounced in the "Low-stable-decreasing PDI" group compared to the "High-rapid-decreasing PDI" group.