The Second Peace of Thorn of 1466 (German: Zweiter Friede von Thorn; Polish: drugi pokój toruński) was a peace treaty signed in the Hanseatic city of Thorn (Toruń) on 19 October 1466 between the Polish king Casimir IV Jagiellon on one side, and the Teutonic Knights on the other.
The treaty concluded the Thirteen Years' War which had begun in February 1454 with the revolt of the Prussian Confederation, led by the cities of Danzig (Gdańsk), Elbing (Elbląg), Kulm (Chełmno) and Thorn, and the Prussian gentry against the rule of the Teutonic Knights in the Monastic State.
Both sides agreed to seek confirmation from Pope Paul II and Holy Roman Emperor Frederick III, but the Polish side stressed (and the Teutonic side agreed) that this confirmation would not be needed for validation of the treaty. In the treaty, the Teutonic Order ceded the territories of Pomerelia (Eastern Pomerania) with Danzig, Kulmerland with Kulm and Thorn, the mouth of the Vistula with Elbing and Marienburg (Malbork), and the Bishopric of Warmia (Ermland) with Allenstein (Olsztyn). The Order also acknowledged the rights of the Polish Crown for Prussia's western half, subsequently known as Polish or Royal Prussia. Eastern Prussia, later called Duchy of Prussia remained with the Teutonic Order until 1525, as a Polish fief.