Story within a story
A story within a story, also referred to as an embedded narrative, is a literary device in which a character within a story becomes the narrator of a second story (within the first one). Multiple layers of stories within stories are sometimes called nested stories.