The invention discloses an alternating ultrasonic field assisted narrow gap welding method. The alternating ultrasonic field assisted narrow gap welding method comprises the following steps of 1) placing a machined welded workpiece on a welding platform, beveling the welded workpiece, pressing four corners, correspondingly placing an ultrasonic device on each of the two sides above a groove, correspondingly pointing the lower ends of ultrasonic generators to the other opposite side of the groove, and arranging an electrode between the two ultrasonic devices; 2) welding, specifically, enabling the left and right ultrasonic devices to alternately work to promote the electric arc to swing left and right; (3) in a welding process, adjusting power and frequency parameters of the ultrasonic devices, changing arc deflection amplitude, and enabling arc parameters to reasonably match with the ultrasonic parameters; and (4) after completing welding, closing the system, air-cooling to room temperature, wiping cleanly, and completing welding. According to the alternating ultrasonic field assisted narrow gap welding method, it is guaranteed that an ultrasonic field can effectively control arc deflection, the arc is compressed, arc energy is enhanced, and the key problem that the side wall of the narrow gap is difficult to melt is effectively solved.