An elfin man called the Story Spinner appears in Margaret's bedroom and begins to tell her stories about a German town called Wunderheim, which is not marked on any maps, and its ten-year-old archduchess Sophia, who is the naughtiest girl anyone has ever known.