The invention discloses a driving device and a
camera module, and the driving device comprises a first frame which carries an optical element, and the optical element is provided with an
optical axis; the first frame is movably arranged on the second frame; the at least one first driving
assembly is suitable for driving the first frame to move in the direction perpendicular to the
optical axis relative to the second frame, the first driving
assembly comprises at least one anti-shake coil and at least one anti-shake
magnet which are oppositely arranged, one of the anti-shake coil and the anti-shake
magnet is arranged on the first frame, and the other one is arranged on the second frame; the anti-shake coil comprises a first effective section and a second effective section, the first effective section and the second effective section are arranged on the two adjacent sides of the anti-shake
magnet respectively, when the anti-shake coil is powered on, the first effective section and the anti-shake magnet generate first driving force, and the second effective section and the anti-shake magnet generate second driving force. The first driving force and the second driving force jointly drive the anti-shake coil and the anti-shake magnet to generate
relative displacement in the direction perpendicular to the
optical axis.