The invention belongs to the field of high-voltage electricity safety technology, and particularly relates to an electric wire anti-bird-nesting mechanism based on a pressure bar structure. The electric wire anti-bird-nesting mechanism comprises a wind pendulum, a spherical hinge, a telescopic rod, an oil cylinder, a cross bar, an inclined supporting rod, an articulated sliding sleeve, an inertial spring, an inertial sliding sleeve and an electric wire, wherein the power of the mechanism is sourced from the natural wind energy, when the wind acts on the wind pendulum, the wind energy is converted to mechanical energy, the telescopic rod and the spherical hinge ensure that the wind pendulum performs rotation and downward swinging motion without interference, the hydraulic oil in the oil cylinder is compressed, the mechanical energy is converted to pressure energy, and thus the cross bar that is connected with the oil cylinder moves, the liquid pressure energy is converted to the mechanical energy again during the period, and then the power is delivered to the inertial sliding sleeve from the cross bar, the inclined supporting rod, the articulated sliding sleeve and the inertial spring to ensure that the inertial sliding sleeve can perform reciprocating sliding on the electric wire to knock off sundries that are used for birds to nest on the electric wire. According to the electric wire anti-bird-nesting mechanism disclosed by the invention, under the action of the natural clean energy-wind energy, the mechanism can continuously play the role and also is reliable in structure and relatively strong in practicability.