Various embodiments of the disclosure relate to a
camera module and an electronic device including the same. According to an embodiment, there may be provided an electronic device including a
camera module, comprising a camera housing; a lens
assembly including at least one lens aligned along an
optical axis; a first substrate including one surface where an
image sensor is disposed; a carrier member configured to guide the first substrate where the
image sensor is disposed or to guide the lens
assembly in a direction parallel to the
optical axis or a direction perpendicular to the
optical axis; at least one driving member including at least one coil and at least one
magnet disposed to at least partially face the at least one coil and configured to move the carrier member in the direction parallel to the optical axis and the direction perpendicular to the optical axis; and a first stopper protruding from the camera housing in a direction parallel to the optical axis and configured to
restrict a movement, in the direction perpendicular to the optical axis, of the carrier member or the first substrate where the
image sensor is disposed. Other various embodiments may also be applicable.