The Pied Piper of Hamelin

The Pied Piper of Hamelin Play – A mysterious musician playing his flute as rats follow him through a medieval town.
The Pied Piper of Hamelin – A magical melody leads the rats away from the town.

The Pied Piper of Hamelin is a delightful play for kids based on the famous German folktale collected by the Brothers Grimm. It tells the story of a town overwhelmed by rats, a mysterious musician with a magical flute, and a mayor who makes a promise he is reluctant to keep.

With humorous characters, entertaining dialogues, and an unforgettable melody, this play teaches children the importance of honesty, responsibility, and keeping their promises. It is a wonderful classroom performance for ESL students, drama classes, and school


CHARACTERS:

  1. Narrator: Tells the story and guides the audience through the scenes.
  2. Erich: A concerned citizen of Hamelin.
  3. Erwin: Erich’s friend.
  4. Woman 1: A worried mother.
  5. Man 1: A shopkeeper.
  6. Man 2: A baker.
  7. Mayor: The town’s leader, who is more concerned about his reputation and money than keeping his word.
  8. Advisor 1: Always has an idea, even when it isn’t a good one.
  9. Advisor 2: Agrees with everyone.
  10. Advisor 3: Loves making suggestions but rarely solves anything.
  11. Captain: In charge of the town guards.
  12. Treasurer: Keeps the town’s money and doesn’t like spending it.
  13. Secretary: The mayor’s assistant.
  14. Old Man: A kind resident of Hamelin.
  15. Pied Piper: A mysterious musician who plays a magical flute.
  16. Little Girl: A cheerful child who admires the Pied Piper.
  17. Townspeople: A group of citizens.
  18. Children: A group of children from Hamelin.
  19. Rats: A group of children wearing simple gray costumes or headbands with ears.

Note: The roles can be expanded or reduced depending on the number of students. The townspeople, children, and rats can be played by large groups.

Setting and Props:

The story takes place in the medieval German town of Hamelin.

Suggested props:

  • A cardboard or wooden sign reading “HAMELIN”
  • A small table and chairs for the mayor’s office
  • A desk, papers, and a chair for the secretary
  • Posters announcing the reward
  • A small bag of pretend gold coins
  • A flute or a toy flute for the Pied Piper
  • Gray costumes, ears, or tails for the rats
  • Simple town decorations and market stalls

SCRIPT:

SCENE I – THE TOWN OF HAMELIN

(Lights on. Erich and Erwin enter, walking through the town square. They look worried and keep glancing around.)

Narrator: Once upon a time, in a beautiful town in Germany called Hamelin, the people lived peacefully. The streets were clean, the shops were busy, and everyone enjoyed their daily activities. But one morning, something terrible happened!

Erich: Good morning, Erwin! Where are you going in such a hurry?

Erwin: Good morning! I’m going to buy a mousetrap.

Erich: A mousetrap? Why?

Erwin: Why? Haven’t you seen them? My house is full of rats!

Erich: Your house too? I thought I was the only one!

Erwin: They’re everywhere! In the kitchens, the bedrooms, the cellars… even in my pantry!

(A rat runs across the stage. Erich and Erwin jump.)

Erich: There! Did you see that?

Erwin: Of course I did! I wish I hadn’t!

(Woman 1 enters, looking upset.)

Woman 1: Oh, gentlemen! Have you seen the rats? I can’t even leave food on the table for a minute!

Erich: We know! They’re taking over the town!

(Man 1 enters carrying an empty basket.)

Man 1: My shop is in terrible condition! The rats have eaten holes in my bags of grain!

Man 2: And my bakery? Don’t even ask! I can’t leave a single loaf of bread unattended!

Erwin: Something must be done before the whole town becomes one enormous rat house!

Woman 1: We must go to the mayor! He has to find a solution!

All: Yes! Let’s go to the mayor!

Narrator: And so, the people of Hamelin hurried to the town hall to demand that the mayor do something about their growing problem.

(The townspeople gather in the square.)

Townspeople: We want the rats out! We want the rats out!

Woman 1: My house is full of them!

Man 1: They’ve ruined my merchandise!

Man 2: They’ve eaten my bread!

Erich: Mayor! We need your help!

(Lights dim.)

SCENE II – THE MAYOR’S OFFICE

(The mayor is sitting behind his desk. The secretary enters.)

Secretary: Your Honor, the townspeople are outside. They want to speak with you.

Mayor: Again? What is it this time?

Secretary: It’s about the rats, Your Honor.

Mayor: The rats? Oh, dear! Not again! Tell them I’m very busy.

Secretary: But, Your Honor, they’re getting louder!

Mayor: Very well! Send them in.

(The townspeople enter, complaining.)

Mayor: Quiet! Quiet, everyone! One at a time, please! I cannot understand anything when everybody speaks at once!

Woman 1: Your Honor, our houses are full of rats!

Man 1: They’ve destroyed our shops!

Man 2: We can’t even bake bread without finding a rat in the flour!

Mayor: This is terrible! Absolutely terrible! What am I supposed to do?

Erich: That’s exactly what we would like to know, Your Honor!

Mayor: Secretary! Call my advisors immediately!

(The secretary exits and returns with the advisors, captain, and treasurer.)

Mayor: Gentlemen, we have a serious problem. The town is full of rats! I need your best ideas. Now!

Advisor 1: I suggest we buy more mousetraps!

Advisor 2: Excellent idea!

Advisor 3: Not just excellent! It’s brilliant!

Mayor: And where are we going to find so many mousetraps?

Advisor 1: Oh! I hadn’t thought about that.

Advisor 2: Perhaps we could ask another town to lend us some.

Advisor 3: And perhaps they could lend us some cats, too!

Mayor: Cats? We have cats! Even the cats are afraid of those rats!

Captain: Your Honor, we could send soldiers to chase them away!

Mayor: With what? Brooms?

Captain: Well… I suppose that would be a little difficult.

Treasurer: Your Honor, I have an idea!

Mayor: Finally! Someone with a sensible suggestion!

Treasurer: Let’s offer a reward to anyone who can get rid of all the rats!

Mayor: A reward? How much?

Treasurer: Two hundred gold coins!

Mayor: Two hundred gold coins? That’s a lot of money!

Captain: But it might solve our problem.

Advisor 1: I agree!

Advisor 2: So do I!

Advisor 3: I couldn’t agree more!

Mayor: Very well! We shall offer two hundred gold coins to anyone who can rid Hamelin of its rats!

All: Excellent idea, Your Honor!

Mayor: Secretary! Prepare the announcement and put posters all over town!

Secretary: At once, Your Honor!

Narrator: The news spread quickly. Before long, posters announcing the reward could be seen everywhere in Hamelin.

(A poster is placed on a wall. Lights fade.)

SCENE III – THE MYSTERIOUS MUSICIAN

(The next morning. An old man is sitting on a bench. A tall, thin musician enters, carrying a flute.)

Old Man: Oh, my! My legs are tired. I need to sit down for a while.

Pied Piper: Good morning, sir. May I help you?

Old Man: How kind of you! Please help me reach that bench.

Pied Piper: Of course! Take my arm.

(The Pied Piper helps him sit down.)

Old Man: Thank you, young man. You’re not from Hamelin, are you? I don’t remember seeing you before.

Pied Piper: No, sir. I’m a traveling musician. I visit different towns and play my flute for people who enjoy music.

Old Man: A musician! How interesting! But tell me, have you noticed something strange about this town?

Pied Piper: You mean the rats?

Old Man: Exactly! They’re everywhere! Look at that poster over there.

(The Pied Piper approaches the poster and reads it.)

Pied Piper: Two hundred gold coins for getting rid of all the rats? That’s quite a reward!

Old Man: It certainly is. But nobody knows how to solve the problem.

Pied Piper: Perhaps I can help.

Old Man: You? How?

Pied Piper: With my flute, of course!

Old Man: Your flute? Oh, my young friend! I think you need more than a little music to get rid of those rats!

Pied Piper: You never know what music can do, sir.

(The Pied Piper smiles and walks toward the town hall.)

Narrator: The mysterious musician went straight to the mayor’s office. He was determined to offer his help.

(Lights change. The secretary is sitting at the desk.)

Pied Piper: Good morning. I would like to speak with the mayor.

Secretary: The mayor is very busy. Do you have an appointment?

Pied Piper: No, but I have something very important to discuss with him.

Secretary: And what might that be?

Pied Piper: I can get rid of all the rats in Hamelin.

Secretary: You? Get rid of all the rats? How?

Pied Piper: With my music.

Secretary: Your music? Are you serious?

Pied Piper: Absolutely!

Secretary: Well, that’s certainly unusual. Please wait here.

(The secretary enters the mayor’s office.)

Secretary: Your Honor, there’s a musician outside who claims he can get rid of all the rats.

Mayor: A musician? What nonsense! Send him in. I want to hear this!

(The Pied Piper enters.)

Mayor: So, you’re the musician who says he can solve our problem?

Pied Piper: Yes, Your Honor. I can lead every rat out of Hamelin.

Mayor: And how do you intend to do that?

Pied Piper: With my flute. Its music has a special power. The rats will follow me wherever I go.

Mayor: Hmm… that’s difficult to believe.

Pied Piper: You don’t have to believe me, Your Honor. Just give me a chance.

Mayor: And what do you want in return?

Pied Piper: The reward you promised: two hundred gold coins.

Mayor: Very well! If you succeed and rid Hamelin of every rat, you shall receive your two hundred gold coins!

Pied Piper: Excellent! You have my word that I will do my best.

Mayor: And you have mine! Now, please, get to work!

Pied Piper: Thank you, Your Honor. You won’t regret it!

(The Pied Piper leaves.)

Mayor: I hope he knows what he’s doing. Two hundred gold coins! That’s quite a lot of money!

(Lights fade.)

SCENE IV – THE MAGIC OF THE FLUTE

(The town square. People are going about their business. The Pied Piper enters and stands in the center.)

Narrator: The Pied Piper walked to the town square, took out his flute, and began to play a beautiful melody.

(The Pied Piper pretends to play. Soft instrumental music can be heard. The rats begin appearing from different corners of the stage.)

Woman 1: What’s that lovely music?

Man 1: I’ve never heard anything like it!

Man 2: Wait a minute! Look over there!

(The rats begin gathering around the Pied Piper.)

Erich: Oh, no! The rats!

Erwin: They’re coming out of every house!

Woman 1: Help! They’re coming this way!

Pied Piper: Don’t be afraid! Just stay back and watch!

Narrator: The Pied Piper continued playing. The rats followed him, one after another, as if they were dancing to his music.

(The Pied Piper begins walking slowly across the stage. The rats follow in a line.)

Pied Piper: That’s it, my little friends. Follow the music!

Man 1: It’s working! He’s leading them away!

Man 2: I can’t believe my eyes!

(The mayor and secretary appear on the balcony or at the side of the stage.)

Mayor: Secretary! Come here! Look at that!

Secretary: It’s incredible, Your Honor! Every single rat is following him!

Mayor: He’s doing it! He’s really doing it!

Narrator: The Pied Piper continued playing as he led the rats out of town and toward the countryside, far away from the houses, shops, and food supplies.

(The Pied Piper and the rats exit.)

Erich: They’re gone!

Erwin: The rats are gone!

Townspeople: Hooray! Hooray! We’re free of the rats!

Mayor: Wonderful! Absolutely wonderful! Hamelin is saved!

Secretary: Shall I prepare the celebration, Your Honor?

Mayor: Of course! Tonight we shall have a great party in honor of our hero!

Townspeople: Long live the mayor! Long live the Pied Piper!

(Lights fade.)

SCENE V – A PROMISE IS A PROMISE

(The mayor is back in his office. The treasurer and advisors enter.)

Mayor: Come in, everyone! We have wonderful news! There are no more rats in Hamelin!

Advisor 1: Wonderful news, Your Honor!

Advisor 2: Simply marvelous!

Advisor 3: The best news we’ve had in years!

Treasurer: And how much did it cost us?

Mayor: Well, I promised the musician two hundred gold coins.

Treasurer: Two hundred gold coins? That’s far too much!

Advisor 1: But he only played his flute!

Advisor 2: Anyone can play a flute!

Advisor 3: I could play a flute! Well… perhaps not very well, but I could try!

Treasurer: Your Honor, I suggest we give him just one gold coin.

Mayor: But I promised him two hundred!

Treasurer: A promise? Oh, come on! He doesn’t need all that money!

Advisor 1: The party should be enough!

Advisor 2: The food and music should be enough!

Advisor 3: And our gratitude should be more than enough!

Mayor: Hmm… perhaps you’re right. Why should we spend so much money?

Narrator: The mayor and his advisors decided not to pay the musician. They thought they could simply forget their promise.

(The Pied Piper enters.)

Pied Piper: Good afternoon, Your Honor. I have completed my work. Hamelin is now free of rats. I have come for my reward.

Mayor: Ah! The Pied Piper! Yes, yes! We are very pleased with your work.

Pied Piper: Thank you, Your Honor. Now, about the two hundred gold coins…

Treasurer: There will be no two hundred gold coins!

Pied Piper: What do you mean?

Advisor 1: We think one gold coin is more than enough.

Advisor 2: After all, you only played music!

Advisor 3: And quite a nice tune, I must say!

Pied Piper: But the mayor promised me two hundred gold coins!

Mayor: Yes, but we have changed our minds. You should be happy with what we offer.

Pied Piper: A promise is a promise, Your Honor. I kept my part of the agreement. Now you must keep yours.

Treasurer: That’s final! Take it or leave it!

Pied Piper: I see. It seems that the people of Hamelin have forgotten the meaning of honesty.

Mayor: Don’t lecture me! You are just a traveling musician!

Pied Piper: Very well. I shall leave. But remember, Your Honor, a broken promise can have consequences.

(The Pied Piper exits.)

Mayor: Good riddance! Now, let’s get ready for the party!

Narrator: The mayor believed he had saved two hundred gold coins. But he had forgotten something important: keeping a promise is worth far more than money.

(Lights fade.)

SCENE VI – THE PIED PIPER’S LAST MELODY

(The town square. The townspeople and children are gathered. The Little Girl approaches the Pied Piper, who is standing nearby with his flute.)

Little Girl: Good afternoon, Mr. Pied Piper!

Pied Piper: Good afternoon, little one!

Little Girl: Thank you for getting rid of the rats. I was so afraid of them!

Pied Piper: You’re very welcome. I’m glad I could help.

Little Girl: Your music is beautiful! Will you play another song for us?

Pied Piper: Of course! I would be delighted.

(The Pied Piper begins playing a cheerful melody. The children gather around him, clapping and dancing.)

Children: What a lovely song! Play another one!

(The mayor enters with the secretary and townspeople.)

Mayor: What’s all this noise? Oh! It’s the Pied Piper!

Secretary: Your Honor, the children are listening to his music.

Little Girl: Mayor! Come and listen! His music is wonderful!

Mayor: Yes, yes… I can hear that.

Pied Piper: Your Honor, I was just about to leave Hamelin.

Mayor: Wait! I have something to say.

(The mayor looks at the townspeople and then at the Pied Piper.)

Mayor: I was wrong. You helped our town when we needed you most, and I promised to pay you for your work. I should never have broken my word.

Treasurer: But, Your Honor…

Mayor: No more excuses! Secretary, bring the two hundred gold coins!

(The secretary brings a small bag of pretend coins.)

Mayor: Here is your reward, just as I promised. Please accept my apology.

Pied Piper: Thank you, Your Honor. I accept your apology. I hope you have learned that promises must be kept.

Mayor: I certainly have!

Advisor 1: I think we should all learn from this!

Advisor 2: Absolutely!

Advisor 3: A promise is a promise!

Little Girl: And now, Mr. Pied Piper, will you play one more song?

Pied Piper: With pleasure!

(The Pied Piper plays a joyful tune. The children and townspeople dance together.)

Narrator: And so, the town of Hamelin learned an important lesson. The Pied Piper kept his promise, and the mayor finally kept his. From that day on, the people remembered that honesty and responsibility are more valuable than gold.

All: A promise is a promise!

Narrator: And they all lived happily ever after!

THE END

AUTHOR: ROBERT BROWNING

ADAPTED BY: K I D S I N C O


Moral Values:

  • Honesty: Always tell the truth and act with integrity.
  • Responsibility: Take responsibility for your words and actions.
  • Respect: Treat others fairly, regardless of their position or wealth.
  • Fairness: Give people what they have rightfully earned.
  • Trustworthiness: Keep your promises and honor your agreements.
  • Gratitude: Appreciate those who help us.
  • Courage: Have the courage to admit when you are wrong.

👉  Explore our full collection of Free Play Scripts for Kids, perfect for classroom performances.  

 👉 Visit our collection of Classic Fairy Tale Plays and enjoy more wonderful adventures with your favorite characters!

👉 External Resources: 


This play script, “The Pied Piper of Hamelin,” is the property of Kidsinco and may not be republished, copied, or distributed on any other website, blog, forum, or social media platform without written permission from Kidsinco. It is intended for personal and educational use only.

Thank you for visiting Kidsinco Free Play Scripts for Kids!