A retaining wall can be used to create level spaces on a slope, just like terracing. If you have a severe sloping yard, a retaining wall may be your best option for installing a pool. You will need to hire a professional to build the retaining wall.