Prince-Bishopric of Warmia
In 1414 the city was plundered and burned during the Hunger War between the Teutonic Knights and Poland. In 1454, the Warmian Chapter paid homage to Polish King Casimir IV Jagiellon, recognizing him as rightful ruler. In retaliation the Teutonic Knights invaded the city in the same year. In 1455, Czech mercenaries in the service of Poland, commanded by Jan Skalski, took back the city. The town was recognized as part of Poland by the Second Peace of Thorn (1466) and it became an important city of the Prince-Bishopric of Warmia and part of the Polish province of Royal Prussia. The city was also devastated after a raid by Albert, Grand Master of the Teutonic Knights in 1520.