The design of underground retaining walls involves engineering principles to ensure stability and safety. It includes considerations of soil properties, wall materials, drainage systems, and structural design to resist lateral earth pressure. Various types of walls, such as soldier pile walls, diaphragm walls, and anchored walls, are used based on the project requirements.