A lens driving apparatus for driving a lens assembly, the lens driving apparatus comprising: a housing comprising a first housing and a second housing, the second housing comprising a portion disposed under the first housing, wherein the first housing comprises an upper portion and a side portion extending in a vertical direction from an end of the upper portion; a barrel disposed in the first housing and configured to receive the lens assembly; a first elastic member connecting the barrel and the first housing such that the barrel moves relative to the first housing in the vertical direction; a first coil attached to an outer side of the barrel; a magnet disposed on an inner surface of the side portion of the first housing and interacting with the first coil to move the barrel and the first coil relative to the first housing in the vertical direction; and a second coil disposed on the second housing and interacting with the magnet to move the first housing and the magnet such that the barrel moves relative to the second housing in a horizontal direction; wherein the magnet comprises a lower surface, an upper surface, and side surfaces; wherein the side surfaces of the magnet comprise a first side surface facing the first coil and a second side surface opposite to the first side surface, the second side surface of the magnet disposed at the inner surface of the side portion of the first housing; wherein the first coil is facing the first side surface of the magnet in the horizontal direction and the second coil is facing the lower surface of the magnet in the vertical direction such that the first coil and second coil interacts with the magnet; and wherein the second coil is disposed between the lower surface of the magnet and an upper surface of the second housing in the vertical direction and is disposed lower than a bottom surface of the barrel. a housing comprising a first housing and a second housing, the second housing comprising a portion disposed under the first housing, wherein the first housing comprises an upper portion and a side portion extending in a vertical direction from an end of the upper portion; a barrel disposed in the first housing and configured to receive the lens assembly; a first elastic member connecting the barrel and the first housing such that the barrel moves relative to the first housing in the vertical direction; a first coil attached to an outer side of the barrel; a magnet disposed on an inner surface of the side portion of the first housing and interacting with the first coil to move the barrel and the first coil relative to the first housing in the vertical direction; and a second coil disposed on the second housing and interacting with the magnet to move the first housing and the magnet such that the barrel moves relative to the second housing in a horizontal direction; wherein the magnet comprises a lower surface, an upper surface, and side surfaces; wherein the side surfaces of the magnet comprise a first side surface facing the first coil and a second side surface opposite to the first side surface, the second side surface of the magnet disposed at the inner surface of the side portion of the first housing; wherein the first coil is facing the first side surface of the magnet in the horizontal direction and the second coil is facing the lower surface of the magnet in the vertical direction such that the first coil and second coil interacts with the magnet; and wherein the second coil is disposed between the lower surface of the magnet and an upper surface of the second housing in the vertical direction and is disposed lower than a bottom surface of the barrel.