The invention discloses a bidirectional alternate integral sealing device used for the main drive of a tunnel boring machine, which comprises a tunnel boring machine adapter flange, a boring machine support ring and an integral seal. A positioning ring is installed on the outside of the support ring of the roadheader. The integral seal includes the base body, 3 sealing rings and 1 detection ring. The cross section of the base body has an L-shaped structure, the end of the radial part is incorporated into the hydrophobic layer, and the end of the axial part is provided with a positioning hook; the outer part of the sealing ring is annular, and the inner part is a U-shaped labyrinth ring cavity, which is equipped with a first outer skeleton, a first inner The casing, the first limit block, the second limit block, the axial seal, the first radial seal and the second radial seal. The outer frame, the second inner shell, the third limit block, the fourth limit block and the third radial seal. The invention integrates the base hydrophobic layer, the axial seal, the radial seal and the labyrinth ring cavity into one body, combined with the injection of sealing grease, and has the advantages of good sealing performance, long service life, less difficulty in disassembly and assembly, and low maintenance cost.