Disclosed is a foldable electronic device including an electronic pen, wherein the foldable electronic device prevents a potential for loss or unintentional movement of the electronic pen and realizes improved portability by providing a stable mounting space for the electronic pen.