In which German city did the Pied Piper get rid of the rats? on Jan 16, 2024 Published in Literature Trivia Hamelin. The earliest mention of the story of the Pied Piper is a stained glass church window in Hamelin, Germany.