The Pied Piper, who wore a very different type of clothes, helped the people of Hamelin. When he entered this town, he ensured the people that he could help them if they were ready to reward him. As they agreed, the Pied Piper played his silver flute. When he started playing his flute, all the rats came out. He went out of the town, and all the rats went behind him following the tune of his flute. As he took a step into the river, all rats drowned in it. Thus, he helped the people of Hamelin to get rid of the wild rats.