Currently, research on traditional villages mainly focuses on the current development status and evolutionary trends in specific regions, with relatively limited studies from a macroscopic and holistic perspective on the spatiotemporal evolution of traditional villages. Therefore, this study selects traditional villages in the Yellow River Basin (YRB) as the research object. By analyzing the spatiotemporal distribution characteristics and driving factors of traditional villages (TVs) in the basin, it aims to further promote high-quality development in the YRB and protect traditional cultural resources. Based on data from 892 village points of the first to sixth batches of TVs in the YRB, ArcGIS 10.8 spatial analysis techniques were employed to analyze the overall spatial pattern of TVs in the YRB. The results indicate: (1) In the basin, TVs are more numerous in the east than the west and more in the south than the north, forming clusters and contiguous distributions, with dense areas primarily in the upstream regions dominated by Qinghai Province and the midstream areas along the Shanxi-Shaanxi coast. (2) The number and scale of TVs in the basin generally exhibit an increasing trend, with imbalanced provincial distribution. More recent years show a more balanced distribution of villages and proportions, with a higher number of villages in the mountainous and plateau regions of the basin. (3) The layout center of TVs within the basin evolves with each batch, showing a migration pattern from north to south, back to north, and finally east to west. (4) The interaction of natural and social factors plays a synergistic role in driving the spatiotemporal distribution pattern of TVs. Among these, natural geographical factors are the primary factors. TVs are more commonly found in regions with low altitude sunny slopes, mild climate, abundant precipitation, proximity to ancient roads and rivers, gentle slopes, and soil predominantly comprising loess, brown earth, and alluvial soils. The cultural environment is a secondary factor, with TVs often located in areas with larger populations, developed economies, and rich cultural heritage.