A historical basis is proposed for the 13th-century legend of the Pied Piper, who led away the rats from the town of Hamelin and, when refused payment for his services, led away 130 children and disappeared with them in the mountains. It is suggested that the children actually died in an outbreak of disease and were buried in a common grave at the site of the legendary disappearance. The association with rats points to a rodent-borne infection, and the pied (mottled) coat of the Piper seems to indicate a disease causing conspicuous macular lesions. Historical and epidemiologic arguments are presented in favor of murine typhus as the predominant infection in the Hamelin epidemic.