A pile group under lateral loading is a complex pile‒soil-pile interaction problem. In this study, numerical analysis was used to investigate the lateral behavior of pile groups arranged in a 3 × 3 configuration with varying piles spacings. The hypoplastic constitutive model embedded into ABAQUS software through the UMAT subroutine was used to characterize the stress‒strain relationship of Toyoura sand. The effects of the pile spacing on the load‒displacement relationship of the pile group, the bending moment-depth relationship of each pile in the pile group, the deflection-depth relationship, and the soil resistance distribution were investigated. The results indicate that the lateral bearing capacity of the pile group decreases by more than 50% when the pile spacing is reduced from 7D to 3D. When the pile spacing is greater than 5D, the “edge effect” of the laterally loaded pile group gradually decreases, and when the pile spacing is greater than 7D, the “shadowing effect” can be negligible, and the wedge-shaped failure zone of the pile group occurs within a depth of 5D below the mud surface.