摘要:Dodonaea viscosa is widely cultivated in the karst graben basin and is crucial for recovering land after rocky desertification. However, the effect of long–time D. viscosa afforestation on changes in the quality of soil remains unclear. Soil nutrients and aggregate composition can be used to evaluate the beneficial effects of afforestation of D. viscosa in improving soil functional stability. In this study, soil nutrients and aggregate stability were investigated using cropland, 10–year, 20–year, and 40–year D. viscosa afforestation and secondary succession shrub. Compared to the cropland, D. viscosa afforestation significantly increased the soil water content (WC), soil organic carbon (SOC), and total nitrogen (TN) contents, with an enhanced effect observed with prolonged afforestation. Soil nutrient contents under D. viscosa afforestation rapidly reached the level of the shrub. Dodonaea viscosa afforestation promoted the formation of >2 mm aggregates and decreased the ratio of 0.053–0.25 mm aggregates, which varied with afforestation years. Compared to the cropland, the content of >0.25 mm water–stable aggregates (R>0.25), mean weight diameter (MWD), and geometric mean weight diameter (GMD) of soil increased exponentially. However, soil erodibility factor (K) and unstable aggregates index (EIt) decreased exponentially with prolonged D. viscosa afforestation, and the latter two indicators did not reach the level of the shrub. These results indicated that soil nutrients, aggregate stability, and erosion resistance increased with prolonged D. viscosa afforestation. However, the aggregate stability and erosion resistance exhibited by D. viscosa could not reach the level of secondary shrub for a long time.