The Pied Piper of Hamelin is the title character of a legend from the town of Hamelin, Lower Saxony, Germany. The legend dates back to the Middle Ages.