The invention relates to the building technology, and discloses a pile foundation. The pile foundation comprises a pile column and a base table, wherein a connecting column is integrally arranged on the pile column, a connecting table used for allowing the base table to be clamped in is formed between the connecting column and the pile column, an assembling hole is formed in the base table, the connecting column is arranged in the assembling hole in a penetrating mode, and a connecting mechanism is arranged between the connecting column and the base table and is used for fixing the base table and the pile column. According to the pile foundation, during transportation, the base table and the pile column can be disassembled, the disassembled base table and the pile column can be completely and horizontally placed on a transport vehicle, so that parts of the pile foundation are not prone to being bent and the like in the transportation process, and then the pile foundation is not prone to being damaged such as breakage; and meanwhile, during use, the base table can sleeve the connecting column, and is positioned and fixed through a connecting block, the assembly type structure is simple and convenient to install, the construction period can be shortened, and therefore, the effect of improving the construction efficiency is further achieved.