Since the Belt and Road Initiative was proposed, many slopes with poor stability have been formed in China's highway and railway infrastructure construction. In response to the national goals set during the 14th Five-Year Plan to strengthen the ecological security barrier and protect biodiversity, and in line with the philosophy that "lucid waters and lush mountains are invaluable assets," ecological protection technology has been widely applied in slope protection. However, current research and design have not considered the role of roots in retaining walls. This study uses an eco-friendly reinforced soil retaining wall project as an example to investigate the relationship between root density and the cohesion and internal friction angle of root-soil composites through direct shear tests. The results show that increasing root density significantly improves the cohesion and internal friction angle of root-soil composites. When the root density is 5%, the cohesion and internal friction angle increased by 40.57% and 51.41%, respectively, compared to the unreinforced soil sample, providing a theoretical reference for engineering design.