The invention provides an anti-rolling device for electric locomotive in a shield tunnel. The device is arranged at the position, facing the end part of a rear wheel, of a motor base, above a track.the anti-rolling device comprises two brake assemblies and two telescopic assemblies, each telescopic assembly is fixed with the motor base of the tail part of the electric locomotive, each telescopic assembly includes a cylinder and a telescopic rod, The brake assembly is positioned directly above the two rail strips, and the telescopic rods of the two telescopic assemblies are respectively threaded in the two brake assemblies, and the telescopic rods are controlled to contract by the cab, and the brake assembly falls off the telescopic rods and onto the rail strips to brake the electric locomotive. As that anti-rolling device of the shield tunnel electric locomotive is simple in structure, economical and practical, convenient in installation and disassembly, the electric locomotive is safer to travel, the brake is quick and effective, and the electric locomotive roll injury accident is effectively avoided. The electric locomotive anti-rolling device of the shield tunnel electric locomotive is simple in structure, economical and practical, convenient in installation and disassembly.