Retaining walls are designed and built with materials for a defined purpose.

For example: (1) to contain unnatural ground slopes, or (2) to restrict the flow of water. In designing a house, drainage is important to improve the stability of the structure. This can be accomplished by including a suitable drainage system or by the use of building blocks, which are generally self-draining.