The Duchy of Gniewkowo was a district principality and a fiefdom within the Kingdom of Poland during the era of fragmentation that was formed in 1314 from part of the Duchy of Inowrocà Âaw. The country was located in the Kuyavia and consisted of Gniewkowo and Sà Âoà Âsk Lands. Its capital was Gniewkowo and other important settlements were Szarlej, Zà Âotoria and Sà Âoà Âsk. It was ruled by Kazimierz III of Gniewkowo and later his son, Wà Âadysà Âaw the White, from the Piast dynasty. In 1332 the duchy was conquered by the State of the Teutonic Order and was reestablished in 1343. Between 1363 and 1364, the duchy was incorporated into the Kingdom of Poland. Duke of Gniewkowo, Wà Âadysà Âaw the White, had later briefly re-established the duchy in the rebellion fought between 1373 and 1374 and later between 1375 and 1377, and eventually given up his claims to the land in 1377.
Duchy of Gniewkowo was formed in 1314 from part of the Duchy of Inowrocà Âaw. Its territories were given to Kazimierz III of Gniewkowo by his father, Ziemomysà  of Kuyavia, Duke of Inowrocà Âaw, in his testament. The county was located in the Kuyavia and consisted of Gniewkowo and Sà Âoà Âsk Lands. Its capital was Gniewkowo and other important settlements were Szarlej, Zà Âotoria and Sà Âoà Âsk.
In 1332, during PolishâÂÂTeutonic War, forces of the State of the Teutonic Order laid the siege to Gniewkowo. Kazimierz III, knowing that he wasn't able to protect the city from falling into Teutonic control, burned down the city and left to exile. During the war, the Teutonic Order got control over the entire area of Kuyavia. In 1343, according to the Treaty of Kalisz, territories of the duchy were returned to Polish control, and Kazimierz III was reestablished as its ruler. As Gniewkowo got burned down during the war, Szarlej become the seat of the duke, and therefore, de facto capital of the state.
Kazimierz III died between 1347 and 1350 and was succeeded by his son, Wà Âadysà Âaw the White. He kept positive relations with the State of the Teutonic Order and the king of Poland. In 1359, the duke married Elà ¼bieta, daughter of Albert of Strzelce. With the marriage, he probably was given Inowrocà Âaw Land as his fiefdom from Casimir III the Great, the king of Poland, that before was part of the Duchy of Inowrocà Âaw. After the death of his wife between 1360 or 1361, the duke returned his fiefdom to the king. At the turn of 1363 and 1364, Wà Âadysà Âaw pawned the duchy to the king of Poland for the prize of 1000 florins. This decision probably was caused by the worsening relations with the king of Poland, who, during the border dispute between the duke and the Kuyavian judge Kiwaà Âa, ruled in favour of the latter.
In 1370, following the death of Casimir III the Great, Wà Âadysà Âaw the White had attempted to gain a right to succession of the throne of Poland, with the support of the Kuyavian and Greater Poland nobility opposed to the coronation of the Louis I of Hungary as the king. Despite that, he remained unsuccessful. On 8 September 1373, he arrived at Gniezno in disguise, and between 9 and 10 September, he conquered the territories of Duchy of Gniewkowo, including towns of Gniewkowo and Inowrocà Âaw; reestablishing the state and beginning the rebellion. Due to the more numerous forces of Louis I supporters led by SÃÂdziwój Paà Âuka, the king's refusal to negotiate and lack of support in the rest of Kuyavia, by 1374 Wà Âadysà Âaw had retreated to Driesen, State of the Teutonic Order.
Wà Âadysà Âaw, supported by Ulrich von Osten and a few Burgundian military units of Philip the Bold, had invaded Kuyavia again in 1375. During the attack, Wà Âadysà Âaw's forces had gained control over the Gniewkowo as well as the castles in the villages of Zà Âotoria and RaciÃ à ¼ek. At this point, both sides of the conflict were better prepared than in 1373. One of the more important fights in the conflict was the battle of Gniewkowo, during which the royal side had a decisive victory. Later, Wà Âadysà Âaw's forces had retreated to the Zà Âotoria Castle and became fortified, but faced a siege and were forced to capitulate. Following that, Wà Âadysà Âaw challenged Bartosz Wezenborg to a duel, which he lost and during which he got injured.
In March 1377, in the agreement signed in Brzeà ÂàKujawski, Wà Âadysà Âaw the White agreed to give up his claims to the throne of Poland and lands of the Duchy of Gniewkowo. In return, he was given 10 000 florins and the status of the Abbot Governator of Pannonhalma Archabbey.