A foundation (or, more commonly, foundations) is the element of an architectural 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.