The Yellow River Basin (YRB) is a crucial ecological zone and an environmentally vulnerable re-gion in China. Understanding the temporal and spatial trends of terraced-field areas (TRAs) and the factors underlying them in the YRB is essential for improving land use, conserving water re-sources, promoting biodiversity, and preserving cultural heritage. In this study, we employed ma-chine learning on the Google Earth Engine (GEE) platform to obtain spatial distribution images of TRAs from 1990 to 2020 using Landsat 5 (1990-2010) and Landsat 8 (2015-2020) remote sens-ing data. The GeoDa software platform was used for spatial autocorrelation analysis, revealing distinct spatial clustering patterns. Mixed linear and random forest models were constructed to identify the driving force factors behind TRA changes. The research findings reveal that TRAs were primarily concentrated in the upper and middle reaches of the YRB, encompassing provinc-es such as Shaanxi, Shanxi, Qinghai, and Gansu, with areas exceeding 40,000 km2, whereas other provinces had TRAs of less than 30,000 km2 in total. The TRAs exhibited a relatively stable trend, with provinces such as Gansu, Qinghai, and Shaanxi showing an overall upward trajectory. Conversely, Shanxi and Inner Mongolia demonstrated an overall declining trend. When com-pared with other provinces, the variations in TRAs in Ningxia, Shandong, Sichuan, and Henan appeared to be more stable. The linear mixed model (LMM) revealed that farmland, shrubs, and grassland had significant positive effects on the TRA, explaining 41.6% of the variance. The ran-dom forest model also indicated positive effects for these factors, with high R² values of 0.983 and 0.86 for the training and testing sets, respectively, thus outperforming the LMM. The findings of this study can contribute to the restoration of the YRB's ecosystem and support sustainable devel-opment. The insights gained will be valuable for policymaking and decision support in soil and water conservation, agricultural planning, and environmental protection in the region.