The utility model discloses an optical element driving mechanism which comprises a base, a frame, a carrier and an elastic piece, the top surface of the base is provided with a plurality of first glue grooves, and the plurality of first glue grooves are arranged at intervals along the circumferential direction of the base, are opened towards the radial outer side of the base and are used for placing glue. The frame is located above the base and movably connected with the base, a plurality of second glue grooves are formed in the bottom face of the frame, and the second glue grooves are aligned with the first glue grooves in the vertical direction and used for containing glue. The carrier and the frame can be movably connected in the vertical direction. The elastic piece is elastically connected with the carrier and the frame and used for driving the carrier to reset.