This document discusses the optimization and stability improvement of counterfort retaining walls with relief shelves in civil engineering. It presents an analysis to determine the best position for the relief shelf, ensuring reduced earth pressure and enhancing wall stability for various wall heights. Findings indicate that the optimal shelf positioning and design adjustments lead to significant reductions in construction material, costs, and cross-sectional dimensions of the walls.