An electronic device is provided which includes a first housing including a first surface and a second surface that faces in a direction opposite or perpendicular to the first surface, a second housing including a third surface that is capable of facing the first surface and a fourth surface that faces in a direction opposite or perpendicular to the third surface, and a hinge structure at least partially inserted into a first recess open on the first surface and a second recess open on the third surface, and couples the first housing and the second housing to be rotatable in relation to each other.