One of the 50 questions in this topic
The foundation supports the weight of the building and transfers the load to the ground.