Foundation (engineering)
A foundation is the element of a structure which connects it to the ground, and transfers loads from the structure to the ground. Foundations are generally considered either shallow or deep. Foundation engineering is the application of soil mechanics and rock mechanics (Geotechnical engineering) in the design of foundation elements of structures.
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.