In 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.[1] Foundation engineering is the application of soil mechanics and rock mechanics (Geotechnical engineering) in the design of foundation elements of structures.