The Compromise of Thorn (also known as the Compromise of Toruń) on 5th of April, 1521, was a peace agreement between the Teutonic Order and the Kingdom of Poland. It was a direct response to the Polish–Teutonic War, a feud that had been going on between both countries for about two years.