In 1410, during the Polish–Lithuanian–Teutonic War, the Polish army of King Władysław II Jagiełło crossed the Vistula River nearby to join the Lithuanian army before the Battle of Grunwald. In 1419, an alliance between Poland and the Kalmar Union was formed in the town. It was reincorporated directly into the Kingdom of Poland in 1526 after the extinction of the Masovian line of the Piast dynasty.
In 1410, during the Polish–Lithuanian–Teutonic War, the Polish army of King Władysław II Jagiełło crossed the Vistula River near to join the Lithuanian army before the Battle of Grunwald. In 1419, an alliance between Poland and the Kalmar Union was formed in the town. It was reincorporated directly into the Kingdom of Poland in 1526 after the extinction of the Masovian line of the Piast dynasty.