A driving mechanism for moving an optical element is provided, including a housing, a frame, a holder, and a driving assembly. The frame is fixed to the housing and forms a depressed surface adjacent to the housing. Specifically, the depressed surface faces the housing and is not in contact with the housing. The holder is movably disposed in the housing for holding the optical element. The drive assembly is disposed in the housing to drive the holder and the optical element to move relative to the frame.