Expansive soil exhibits remarkable characteristics of water absorption expansion and water loss shrinkage, rendering it susceptible to cracking under the alternating dry–wet environments of nature. The generation and development of cracks in expansive soil can result in catastrophic engineering accidents such as landslides. Vegetation protection is an important approach to stabilizing expansive soil slopes and fulfilling ecological protection requirements. In this study, through indoor experiments and theoretical analysis methods, the effects of Cynodon dactylon roots on the crack development and shear strength of expansive soil subjected to dry–wet cycles were analyzed, and the relationship between the crack development and shear strength decay in root-doped expansive soil was explored. Furthermore, the mechanism of vegetative root system action was elucidated. The results show that the Cynodon dactylon root system exerts a significant inhibitory effect on crack development in expansive soil. The crack indexes of root-doped expansive soil exhibit significant phase characteristics during the process of dry–wet cycles. The crack-blocking and reinforcing effect of the root system becomes pronounced as the root-to-soil mass ratio increases and the root diameter decreased. Moreover, the process of crack development in expansive soil is accompanied by a decrease in soil shear strength. The quantitative relationship between crack development and shear strength decay can serve as a basis for predicting the stability of slope soil. Overall, the results highlight the potential of vegetation-based approaches in protecting slopes with expansive soils and have practical implications for ecological protection and engineering design in areas with expansive soils.