Soil tensile strength is a critical parameter governing the initiation and propagation of tensile cracking. This study proposes an eco-friendly approach to improve the tensile behavior and crack resistance of clayey soils. To validate the feasibility and efficacy of the proposed approach, direct tensile tests were employed to determine the tensile strength of the compacted soil with different W-OH treatment concentrations and water contents. Desiccation tests were also performed to evaluate the effectiveness of W-OH treatment in enhancing soil tensile cracking resistance. During this period, the effects of W-OH treatment concentration and water content on tensile properties, soil suction and microstructure were investigated. The tensile tests reveal that W-OH treatment has a significant impact on the tensile strength and failure mode of the soil, which not only effectively enhances the tensile strength and failure displacement, but also changes the brittle failure behavior into a more ductile quasi-brittle failure behavior. The suction measurements and mercury intrusion porosimetry (MIP) tests show that W-OH treatment can slightly reduce soil suction by affecting skeleton structure and increasing macropores. Combined with the microstructural analysis, it becomes evident that the significant improvement in soil tensile behavior through W-OH treatment is mainly attributed to the W-OH gel's ability to provide additional binding force for bridging and encapsulating the soil particles. Moreover, desiccation tests demonstrate that W-OH treatment can significantly reduce or even inhibit the formation of soil tensile cracking. With the increase of W-OH treatment concentration, the surface crack ratio and total crack length are significantly reduced. This study enhances a fundamental understanding of eco-polymer impacts on soil mechanical properties and provides valuable insight into their potential application for improving soil crack resistance.