Human-wildlife conflict (HWC) and its socioeconomic impacts are a pressing global issue. Accurately quantifying HWCs and their interaction with residential development is crucial for rural revitalization and biodiversity conservation efforts. This study investigates the interplay between rural residential expansion (RRE) with human-elephant conflict (HEC) in southern Yunnan Province using high-accuracy yearly land use/land cover data and Asian elephant accident data. A piecewise regression along with several metrics, including expansion intensity and rate of rural residential land, and residential density, were employed to analyze the spatial-temporal change characteristics of RRE. Then, a geographical detector and a bivariate spatial autocorrelation model were used to reveal the driving mechanisms of RRE, with particular emphasis on the spatial relations between RRE and HECs. The results indicate that HECs had a significant negative impact on RRE, exhibiting higher expansion intensity and rate of rural residential land in non-HEC areas than in HEC areas. High spatiotemporal consistency between accelerated RRE and intensified HECs occurred from 2010 onwards, which aligns with the year when the trend of settlement area expansion changed. RRE activities and ensuing land use conversions led to increased occurrences of HECs, which negatively affected the RRE. Compared to HECs, topography and locational factors exhibited a secondary effect on RRE activities. The findings underscore reciprocal feedback mechanisms between RRE and HECs and the elevated risk of adverse interactions between humans and elephants within the range of China's wild elephants, providing theoretical support for coordinating conservation initiatives for Asian elephants with rural revitalization in the border areas of Southwest China.