The Smurfs and the Magic Flute was set at a castle during the Middle Ages. One day a merchant brings musical instruments to sell to Peewit, the court jester, but because Peewit is such a terrible musician, the King throws the merchant out before Peewit arrives. However, he has left behind a flute that has only six holes. The King throws it into the fireplace in his room, which starts to emit green smoke. When the fire is put out, Peewit retrieves the flute from the ashes unharmed. He cleans it and starts playing it for the whole castle, realizing that it causes everyone to dance when it is played.