An electronic device includes a foldable housing, wherein through a first hinge structure, the second surface of a first housing structure face the fourth surface of a second housing structure in a folded state and the first surface of the first housing structure and the third surface of the second housing structure face in the same direction in an unfolded state, and through a second hinge structure, the third surface faces the fifth surface of a third housing structure in the folded state and the third surface and the fifth surface face in the same direction in the unfolded state; and a flexible display, wherein the second surface includes a recess whose vertical distance to the first surface is shorter than a vertical distance of a nearby site, and the fourth surface includes a portion corresponding to the recess to make surface contact with the second surface.