Properties that contain slopes or hills use retaining walls to hold back the soil and prevent the ground from eroding. A well-placed retaining wall creates a flat expanse across a sloped yard and transforms a hilly space into a patio or garden.