Foundation (engineering)
Foundations are designed to have an adequate load capacity depending on the type of subsoil/rock supporting the foundation by a geotechnical engineer, and the footing itself may be designed structurally by a structural engineer. The primary design concerns are settlement and bearing capacity. When considering settlement, total settlement and differential settlement is normally considered. Differential settlement is when one part of a foundation settles more than another part. This can cause problems to the structure which the foundation is supporting. Expansive clay soils can also cause problems.
Basement
Even with functioning sump pumps or low water tables, basements may become wet after rainfall, due to improper drainage. The ground next to the basement must be graded such that water flows away from the basement wall. Downspouts from roof gutters should drain freely into the storm sewer or directed away from the house. Downspouts should not be connected to the foundation draintiles. If the draintiles become clogged by leaves or debris from the rain gutters, the roof water would cause basement flooding through the draintile. Damp-proofing or waterproofing materials are typically applied to outside of the basement wall. It is virtually impossible to make a concrete wall waterproof, over the long run, so drainage is the key. There are draining membranes that can be applied to the outside of the basement that create channels for water against the basement wall to flow to the foundation drains.