Expansive soil is a special soil type that undergoes volume expansion during hygroscopicity and volume contraction during dehumidification. In this study, the effects of rainfall–evaporation cycles on the microscopic pores and cracks of expansive soils under different rainfall intensities were analyzed by simulating light rainfall, medium rainfall, and high-temperature drought environments using nuclear magnetic resonance (NMR) technology and image processing methods. The results showed that the micropores and small medium pores of the expanded soil gradually evolved into macropores during the cycling process, especially under stronger rainfall conditions. In addition, as the number of cycles increased, the expanded soil showed irrecoverable pore changes, which ultimately led to the scattering damage of the soil. By processing the surface crack images of expansive soils, the process of crack development was categorized into four stages, and it was found that the evaporation cycle of medium rainfall intensity caused the main cracks of expansive soils to develop more rapidly. A quantitative relationship model between the average crack width and the number of cycles as well as porosity was constructed, and the regression coefficient of determination R2 reached 0.98, 0.96, and 0.84, respectively. This study simulates the effects of real rainfall conditions on expansive soils and investigates the mechanism and evolution of cracks in expansive soils, which is of great theoretical and practical significance.