Retaining walls are used to hold back earth or loose materials where natural slopes cannot form due to space restrictions. There are several types of retaining walls including gravity, cantilever, counterfort, and buttress walls. Stability requirements for retaining walls include ensuring individual parts can resist forces, and the wall as a whole is stable against settlement, sliding, and overturning. Proper drainage is also important to consider in retaining wall design.