Apr 10, 2019· The purpose of all retaining walls is to hold soil behind them. However, the specific needs will vary depending on the project. Walls can range from small landscape stone walls to surround a garden to enormous soilretaining projects along a highway. Others can help control erosion from hard rains or create a terraced yard to reduce maintenance.