A deep foundation is a type of foundation which transfers building loads to the earth farther down from the surface than a shallow foundation does, to a subsurface layer or a range of depths.
Piles are vertical structural element of a deep foundation, driven deep into the ground at the building site.