A driving mechanism is provided, including a fixed part, a movable part for holding an optical element, a driving assembly, and a circuit board. The driving assembly is used for driving the movable part to move relative to the fixed part. The circuit board is disposed on the fixed part, having a conductive portion exposed to an outer surface of the circuit board and a trace embedded in the circuit board. The conductive portion and the trace partially overlap when viewed in a horizontal direction perpendicular to the optical axis of the optical element.