The invention relates to a driving mechanism of a dual-power automatic transfer switch. The driving mechanism mainly comprises a driving electromagnet assembly, a mounting bracket, a connecting plate, a push rod, a lever, an oscillating deck, a crank, a main switch rotating shaft, a connecting rod, a pin shaft, a rotating shaft, a first hinged shaft, a second hinged shaft, a connecting block, a shaft, a third hinged shaft and a fourth hinged shaft; the driving electromagnet assembly is composed of a magnet exciting coil, a dynamic iron core, a spring and a static iron core. The driving mechanism is characterized in that in the driving electromagnet assembly, linear motion in the horizontal direction of the dynamic iron core and the push rod is converted into linear motion of the pin shaft in the vertical direction through the oscillating deck, the lever, the connecting plate and the like, and linear motion of the pin shaft is converted into swing of the main switch rotating shaft around the axis through the connecting rod and the crank. Reciprocating swing of the main switch rotating shaft completes switching on and switching off actions of the whole switch. The oscillating deck plays a role in changing the motion direction. The lever plays a role in increasing thrust. A connecting rod crank mechanism plays a role in self-locking and preventing reversion.