The numerical simulation technique of fast lagrangian analysis of continua (FLAC3D) are used to simulate the construction process of excavation in foundation with soil nailing, which considering the function of soil nailing and the interaction law between soil and soil nailing. The constitutive law of soil which can reflect the excavation characteristic of soil, the process of excavation and reinforcement simulation, and the double-spring soil nailing elements are chosen to found a numerical calculation model. Deformation responses of foundation bottom and side-wall soil mass are analyzed as well as the mechanical response of soil nailing during and after excavation. The analysis results show that: 1) the process of excavation lead to the deformation of soil mass in foundation, which is the reasons of tensile failure and shear failure; for tensile failure areas, the length of soil nailing should be set over the slip plane; for shear failure areas, the density of soil nailing can be set large at the place of shear opening; and 2) after excavation, the axial stress distributes different along the axial length, the location of maximum axial stress in the soil nailing can indicate the location of potential slip plane. Conclusion FLAC3D can simulate the excavation and reinforcement of foundation reasonably. The analytical model built in this paper can reflect real situation for the foundation reinforced by soil nailing during and after excavation, which can give guidance for design and construction of soil nailing reinforcement technique in foundation.