Soil pressure on a retaining wall increases with the depth of the soil it is holding back. Walls typically fail in three ways - by bending, by sliding, or by toppling. When engineering a wall, the lateral thrust, reaction forces and friction must all be analyzed to account for these three failure modes.
To learn more about retaining walls, visit the JLC Field Guide - an online construction reference and training resource.