The invention relates to the technical field of cranes, in particular to an anti-overturning mechanism of a crane, which solves the problem in the prior art that when lifting heavy objects, the vehicle loses balance, the vehicle easily overturns, and accidents occur. An anti-overturning mechanism for a crane, comprising a crane outrigger, the bottom of the crane outrigger is hinged to a base through a hinge assembly, the top of the crane outrigger is hinged to a horizontal telescopic assembly through a hinge assembly, and the top of the base is provided with a hinge assembly Cooperating grooves; both sides of the base are provided with a protective mechanism, the protective mechanism includes an I-shaped slide rail, both sides of the I-shaped slide rail are slidably connected with a first slider, and the I-shaped slide rail Limiting blocks are fixed at both ends of the rail, and the bottom of the I-shaped slide rail is connected to the ground. The invention has a reasonable structure, is convenient to carry out limit support when rolling over, prolongs the reaction time, and thus avoids the occurrence of accidents.