An apparatus comprising: a lens barrel including at least one lens group; a base including an image sensor spaced apart from the lens barrel in an optical axis direction; a fixed frame fixed to the base, the fixed frame having four sidewalls including a first sidewall, a second sidewall, and a third sidewall, each configured to accommodate a first driving coil, a second driving coil, and a third driving coil respectively; a first moving frame, supported with respect to the fixed frame to be moved in the optical axis direction, having a first magnet attached thereto, the first magnet arranged to be moved by the first driving coil to move the first moving frame along the optical axis direction; a plurality of first balls disposed between the fixed frame and the first moving frame, wherein first guide grooves that guide the plurality of first balls in the optical axis direction are formed in at least one of the fixed frame and the first moving frame; a second moving frame, supported with respect to the first moving frame to be moved in a direction perpendicular to the optical axis direction, having the lens barrel mounted thereon, a second magnet attached thereto, and a third magnet attached thereto, wherein the second moving frame is to be moved along a first direction perpendicular to the optical axis direction by the second magnet and the second driving coil, and a second direction perpendicular to the optical axis direction by the third magnet and the third driving coil; a plurality of second balls disposed between the first moving frame and the second moving frame wherein second guide grooves to guide the plurality of second balls in the first direction are formed in at least one of the first moving frame and the second moving frame; a plurality of third balls disposed in the second moving frame, wherein third guide grooves to guide the plurality of third balls in the second direction are formed in the second moving frame; and a flexible printed circuit board, the flexible printed circuit board connected to the first driving coil, the second driving coil, and the third driving coil to provide current. a lens barrel including at least one lens group; a base including an image sensor spaced apart from the lens barrel in an optical axis direction; a fixed frame fixed to the base, the fixed frame having four sidewalls including a first sidewall, a second sidewall, and a third sidewall, each configured to accommodate a first driving coil, a second driving coil, and a third driving coil respectively; a first moving frame, supported with respect to the fixed frame to be moved in the optical axis direction, having a first magnet attached thereto, the first magnet arranged to be moved by the first driving coil to move the first moving frame along the optical axis direction; a plurality of first balls disposed between the fixed frame and the first moving frame, wherein first guide grooves that guide the plurality of first balls in the optical axis direction are formed in at least one of the fixed frame and the first moving frame; a second moving frame, supported with respect to the first moving frame to be moved in a direction perpendicular to the optical axis direction, having the lens barrel mounted thereon, a second magnet attached thereto, and a third magnet attached thereto, wherein the second moving frame is to be moved along a first direction perpendicular to the optical axis direction by the second magnet and the second driving coil, and a second direction perpendicular to the optical axis direction by the third magnet and the third driving coil; a plurality of second balls disposed between the first moving frame and the second moving frame wherein second guide grooves to guide the plurality of second balls in the first direction are formed in at least one of the first moving frame and the second moving frame; a plurality of third balls disposed in the second moving frame, wherein third guide grooves to guide the plurality of third balls in the second direction are formed in the second moving frame; and a flexible printed circuit board, the flexible printed circuit board connected to the first driving coil, the second driving coil, and the third driving coil to provide current.