The earliest existing account of the Pied Piper of Hamelin is found in the Lueneburg manuscript (c. 1440–50):
Anno 1284 am dage Johannis et Pauli
war der 26. junii
Dorch einen piper mit allerlei farve bekledet
gewesen CXXX kinder verledet binnen Hamelen gebo[re]n
to calvarie bi den koppen verloren
In the year of 1284, on the day of Saints John and Paul
on 26 June
130 children born in Hamelin were seduced
By a piper, dressed in all kinds of colors,
and lost at the place of execution near the hills.
Illustration: "The oldest picture of the Pied Piper copied from the glass window of the Market Church in Hameln/Hamelin Germany (ca.1300-1633) Painting by Augustin von Moersperg (1592)." -- Wikipedia
Everybody else has a theory -- what do you think really happened?