Abstract. Pile–slab retaining walls, as innovative rockfall protection structures, have been extensively utilized in the western mountainous regions of China. With their characteristics of a small footprint, high interception height, and ease of construction, these structures demonstrate promising potential for application in mountainous regions worldwide, such as the Himalayas, Andes, and Alps. However, their dynamic response upon impact and impact resistance energy remain ambiguous due to the intricate composite nature of the structures. To elucidate this, an exhaustive dynamic analysis of a four-span pile–slab retaining wall with a cantilever section of 6 m under various impact scenarios was conducted utilizing the finite-element numerical simulation method. The rationality of the selected material constitutive models and the numerical algorithm was validated by reproducing two physical model tests. The simulation results reveal the following. (1) The lateral displacement of the pile at the ground surface and the concrete damage under the pile at the impact center are greater than those under the slab at the impact center, implying that the impact location has a significant influence on the stability of the structure. (2) There is a positive correlation between the response indexes (impact force, interaction force, lateral deformation of pile and slab, concrete damage) and the impact velocities. (3) The rockfall peak impact force, the ratio of the peak impact force to the peak interaction force, and lateral displacement of the pile at the ground surface had strong linear relationships with rockfall energy. (4) Relative to the bending moment, shear force, and damage degree, the lateral displacement of the pile at the ground surface is the first to reach its limit value. Taking the lateral displacement of the pile at the ground surface as the controlling factor, the estimated maximum impact energy that the pile–slab retaining wall can withstand is 905 kJ in this study when the structure top is taken as the impact point. In cases where the impact energy of falling rocks exceeds 905 kJ, it is recommended to optimize the mechanical properties of the cushion layer, improve the elastic modulus of concrete, increase the reinforcement ratio of longitudinal tension bars, enlarge the section size of piles at ground level, or add anchoring measures to enhance the bending resistance of the retaining structure.