A driving mechanism is provided and configured to drive an optical element. The driving mechanism includes a base unit, a holding unit, a driving assembly, a sensing assembly, and a first circuit component. The holding unit is configured to hold an optical element that has an optical axis. The driving assembly is configured to drive the optical element to move relative to the base unit. The sensing assembly is configured to detect the movement of the holding unit relative to the base unit. The first circuit component is disposed in the base unit and electrically connected to the sensing assembly, wherein the first circuit component extends in a direction that is substantially parallel to the optical axis.