A camera module comprising: a housing including a first housing and a second housing disposed under the first housing; a lens barrel disposed in the first housing; an elastic member connecting the housing and the lens barrel, and including an outer frame connected to the housing, an inner frame connected to the lens barrel, and an elastic part connecting the inner frame and the outer frame and comprising a first elastic part and a second elastic part, a driving unit including a first driving module (173, 177) and a second driving module (175, 177), the first driving module (173, 177) disposed between the first housing and the lens barrel and including a first coil means and a magnet means spaced apart from and facing each other in a first direction perpendicular to an optical axis of the lens barrel, the second driving module (175, 177) including a second coil means disposed on the second housing and the magnet means facing the second coil means in a second direction parallel to the optical axis of the lens barrel, wherein the first housing includes four side surfaces being arranged rectangular to each other, wherein the second coil means includes four coils, each coil disposed between the second housing and the four magnets, respectively, and wound around an axis parallel with the optical axis of the lens barrel, wherein the first driving module (173, 177) and the second driving module (175, 177) move the lens barrel relative to a sensor unit, and wherein the driving unit moves the lens barrel with reference to the housing in three axis directions perpendicular to each other, characterized in that the magnet means being attached to the lens barrel, that the first driving module (173, 177) and the second driving module (175, 177) sharing use of the magnet means attached to the lens barrel to move the lens barrel in the first direction and the second direction, respectively, that the sensor unit is disposed under a portion of the second housing in a direction parallel to the optical axis, wherein a distance between the second coil means and the sensor unit remains constant when the driving unit moves the lens barrel, and that the magnet means includes four magnets fixed to the lens barrel, each magnet fixed to the lens barrel having a shape of plate and facing one of the four side surfaces of the first housing, respectively. a housing including a first housing and a second housing disposed under the first housing; a lens barrel disposed in the first housing; an elastic member connecting the housing and the lens barrel, and including an outer frame connected to the housing, an inner frame connected to the lens barrel, and an elastic part connecting the inner frame and the outer frame and comprising a first elastic part and a second elastic part, a driving unit including a first driving module (173, 177) and a second driving module (175, 177), the first driving module (173, 177) disposed between the first housing and the lens barrel and including a first coil means and a magnet means spaced apart from and facing each other in a first direction perpendicular to an optical axis of the lens barrel, the second driving module (175, 177) including a second coil means disposed on the second housing and the magnet means facing the second coil means in a second direction parallel to the optical axis of the lens barrel, wherein the first housing includes four side surfaces being arranged rectangular to each other, wherein the second coil means includes four coils, each coil disposed between the second housing and the four magnets, respectively, and wound around an axis parallel with the optical axis of the lens barrel, wherein the first driving module (173, 177) and the second driving module (175, 177) move the lens barrel relative to a sensor unit, and wherein the driving unit moves the lens barrel with reference to the housing in three axis directions perpendicular to each other, characterized in that the magnet means being attached to the lens barrel, that the first driving module (173, 177) and the second driving module (175, 177) sharing use of the magnet means attached to the lens barrel to move the lens barrel in the first direction and the second direction, respectively, that the sensor unit is disposed under a portion of the second housing in a direction parallel to the optical axis, wherein a distance between the second coil means and the sensor unit remains constant when the driving unit moves the lens barrel, and that the magnet means includes four magnets fixed to the lens barrel, each magnet fixed to the lens barrel having a shape of plate and facing one of the four side surfaces of the first housing, respectively.