In this study, numerical simulations were carried out to analyze the influence of caves in different positions and shapes, in combination with structural planes, on the stability of the slope and the failure characteristics of a rock slope in a deep foundation pit with high inclination structural planes and cave development. The schemes for substituting a single karst cave for karst caves were constructed. Based on the penetration failure characteristics of karst caves between parallel structural planes, methods for calculating the safety factor of the rock foundation pit and the upper bound of the lateral pressure of the supporting structure under the combined influence of the caves and structural planes were developed, which can be used to assess the safety factor of a rock mass and to calculate the lateral pressure under complex geological conditions.