What is a foundation?

A foundation is the element of a structure which connects it to the ground or more rarely, water, transferring 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. Shallow foundations of a house versus the deep foundations of a skyscraper.