The process of designing the foundation of a structure to ensure it is stable and can support the weight of the building.