A building foundation transfers structural loads to the ground. Learn its purpose, shallow and deep foundation types, and where each is used.