This document discusses the functions of pile foundations. Pile foundations are used when there is a compressible or weak upper soil layer, horizontal forces are present, expansive soils are present, uplifting forces are present, or soil erosion could occur. Pile foundations provide support below the weak upper layers of soil and transfer loads directly to stronger deeper soils or bedrock.