The Thirteen Years' War (Polish: wojna trzynastoletnia; German: Dreizehnjähriger Krieg), also called the War of the Cities, was a conflict fought in 1454–1466 between the Crown of the Kingdom of Poland and the Teutonic Order.
After the enormous defeat suffered by the German Order at the hand of Poland-Lithuania in 1410 and the ensuing political, military and economic problems, the state was rife with internal conflict between the ruling Order and the native Prussian warlords, who shared concerns with assimilated Prussian and German townsfolk. Eventually this tension led to an uprising by the Prussian Confederation representing the local Prussian nobility and cities, who sought the protection of the Polish King Casimir IV Jagiellon. This essentially amounted to a switching of sides which the German Order immediately took as a mortal threat, and a war broke out between Poland and the Teutons.