During large-diameter rescue well drilliing process, in order to prevent formation water and drilling fluid from rushing into the roadway along the borehole and causing secondary injury to the trapped personnel underground, geotechnical numerical simulation method is adopted. A model was established, taking the surface rescue well of No. 3 coal seam roadway in Shanxi Pingshang Coal Mine as an example. The plastic deformation characteristics of the roadway roof surrounding rock under drilling dynamic disturbance condition are studied, and the safe penetration distance is optimized.The results show that the dynamic disturbance causes the displacement and deformation and plastic failure of the roof surrounding rock. The distribution is symmetrical and zigzag around the center of the borehole. The axial force has a greater impact on the surrounding rock of the roof of the tunnel, and the safe penetration distance is set to 16.53 m. The simulation results provide a reference for optimizing the distance of safe tunnel penetration, realize the purpose of safe and efficient roadway penetration, which provide a guarantee for the safe lowering and lifting operation of the rescue capsule in the rescue well.