In June 1466, in Wrocław, Polish diplomat Jan Długosz held a meeting with a papal legate, starting a peace process between Poland and the Teutonic Order, which a few months later culminated in the signing of a peace treaty in Toruń that ended the Thirteen Years' War, the longest of Polish–Teutonic wars.