Fairy tales

The Pied Piper of Hamelin

Best-known version: 1816Origin: Hameln (Germany)

The musician who rid the town of rats… and then led its children away

The Brothers GrimmLegend collected by the Brothers Grimm
The piper leads the children away
The piper leads the children away — illustration by Kate Greenaway (1888)
Kate Greenaway — Public domain — Wikimedia Commons

In brief

In 1284 the town of Hamelin (Hameln), in Germany, is overrun by rats. A strange piper promises to get rid of them for a reward. But the townspeople refuse to pay him… A German legend published by the Brothers Grimm in 1816.

The tale

In the year 1284 a strange man, dressed in clothes of many colours, came to Hamelin, a town on the River Weser overrun with rats and mice. He introduced himself as a rat-catcher and promised, for a sum of money, to rid the town of them. The townsfolk agreed.

The man took out a little pipe and began to play. At once the rats came out of every house and followed him. He led them to the Weser, waded into the water, and all the rats drowned.

But once they were rid of them, the townsfolk refused to pay the promised reward. Angry, the piper left the town without a word.

On 26 June, the feast of Saints John and Paul, he came back, dressed as a huntsman, with a red hat. He played his pipe again. This time it was not the rats that followed him but the children of the town, a hundred and thirty boys and girls. He led them out through the walls towards a mountain, where they vanished with him for ever.

Only two children came back, having arrived too late: one was blind and could not show where they had gone, the other was dumb and could not tell anything. Since then, it is said, music may not be played in the street through which the children left the town.

Where does this tale come from?

The legend rests on a real but mysterious event: medieval documents from Hamelin record that in 1284 a hundred and thirty children left the town and never returned. Historians suggest an epidemic, a children’s crusade, or more likely young people leaving for eastern Europe to found new villages.

The rats only appear in the story in the 16th century. The Brothers Grimm published it in 1816 in their “German Legends”, and the English poet Robert Browning made it famous in the English-speaking world in 1842.

The moral

Keep your promises, or you may lose far more than you owe.

Did you know?

In Hamelin there is still a street, the Bungelosenstraße, where playing music is forbidden, in memory of the lost children.

Sources: C. Perrault, Histoires ou contes du temps passé, 1697; J. and W. Grimm, Children’s and Household Tales, 1812–1857; H. C. Andersen, Fairy Tales, 1835–1872; H.-J. Uther, The Types of International Folktales, 2004; stories freely retold for this site.

In the same collection: The Brothers Grimm