The Teutonic Order's annexation and possession of Gdańsk (Danzig) and the surrounding region was consistently disputed by the Polish kings Władysław I and Casimir III the Great—claims that led to the Polish–Teutonic War (1326–1332) and, eventually, lawsuits in the papal court in 1320 and 1333, which ruled in favor of Poland, however, the Teutonic Knights did not comply and continued to occupy the annexed Polish territories. The Teutonic Knights even invaded Poland further and briefly occupied the regions of Kuyavia and Dobrzyń Land. A peace was concluded at Kalisz in 1343, Kuyavia and Dobrzyń Land were restored to Poland, and the Teutonic Order agreed that Poland should rule Pomerelia as a fief and Polish kings, therefore, retained the right to the title "Duke of Pomerania". The title referred to the Duchy of Pomerelia. Unlike in English, German, Latin or Lithuanian language Polish uses the term "Pomorze" for Pomerania (a fief of Poland, Saxony and Denmark in the High Middle Ages, and first in 1181, but since 1227 a permanent fief within the Holy Roman Empire) and Pomerelia alike. Both duchies were earlier ruled by related dynasties, thus the semantic title was Duke of Pomerania rather than Duke of Pomerelia, as it was referred to in other languages.