The pile-soil interaction mechanism of h-type retaining structures is complicated. As a result, a reasonable engineering design method has not been developed yet. The deflection differential equations of the front and rear piles are established on the basis of the Euler-Bernoulli beam theory and a series of soil springs around piles. It ensures the deformation compatibility of pile at sliding surface, a matrix equation set using the finite difference method was conducted to evaluate the internal force and deformation of h-type retaining structure. A finite element model was established based an h-type retaining structure engineering in Keku landslide. The two methods are used for evaluating the internal force and deformation of piles, the difference in the maximum bending moment and shear force between the finite difference method and FEA method is less than 5%, which indicates that the proposed method is reasonable for evaluating the h-type retaining structure in slope design engineering.