In 1364/1365, Władysław the White mortgaged Gniewkowo to Polish King Casimir III the Great. In 1408 the city hosted a meeting between Polish King Władysław II Jagiełło and the Teutonic Knights over the disputed Dobrzyń Land. From 1409 to 1411 Gniewkowo played an important role in the Polish–Lithuanian–Teutonic War. Administratively it was located in the Inowrocław Voivodeship in the Greater Poland Province of the Polish Crown.