Aiming at the similarities and differences of design method for pile foundation bearing capacity between Spanish Rom code and Chinese JTS code,we summarize the design method for single pile of Spanish Rom code and application scope of the two methods,and analyze and compare the bearing capacity of compressive pile and tensile pile. Combining with the engineering practice,we calculate and compare the bearing capacity of compressive pile and tensile pile according to Spanish Rom code and Chinese JTS code. The results show that design value of allowable bearing capacity of compressive pile calculated by Chinese JTS code is smaller than that of Spanish Rom code,but the design value of allowable bearing capacity of tensile pile calculated by Chinese JTS code is larger than that of Spanish Rom code.