The three main types of retaining walls are sheet piling, gravity, and cantilever. Sheet piling walls are ideal for areas with soft soil and tight spaces due to their slender profile. Gravity walls use heavy materials like concrete or stone to leverage their own weight to hold back soil. Cantilever walls, on the other hand, use a reinforced base and leverage the weight of the backfill to provide additional stability, making them suitable for higher walls.