The city of Danzig (Gdańsk) was captured by the State of the Teutonic Order on 13 November 1308, resulting in a massacre of its inhabitants and marking the beginning of tensions between Poland and the Teutonic Order. Originally the knights moved into the fortress as an ally of Poland against the Margraviate of Brandenburg. However, after disputes over the control of the city between the Order and the King of Poland arose, the knights murdered a number of citizens within the city and took it as their own. Thus the event is also known as Gdańsk massacre or Gdańsk slaughter (rzeź Gdańska). Though in the past a matter of debate among historians, a consensus has been established that many people were murdered and a considerable part of the town was destroyed in the context of the takeover. In the aftermath of the takeover, the order seized all of Pomerelia (Gdańsk Pomerania) and bought up the supposed Brandenburgian claims to the region in the Treaty of Soldin (1309). The conflict with Poland was temporarily settled in the Treaty of Kalisz (1343). The town was returned to Poland in the Second Peace of Thorn in 1466. Background In the 13th century, the Pomerelian duchy was ruled by members of the Samborides, originally stewards for the Polish Piast kings and dukes. The stewards asserted their power from fortified strongholds. The major stronghold of the area was at the location of present-day Gdańsk's Old Town. The adjacent town developed from a market place of tradesmen and was granted Lübeck city rights by Duke Swietopelk II in 1224. Under Swietopelk II, Gdańsk became an important trading site on the lower Vistula. The Margraviate of Brandenburg entered the scene after Mestwin II, son of Swietopolk, concluded the Treaty of Arnswalde with them, in order to receive aid against his brother, Wartislaw. The margraves took over the town in 1270/1 from Wartislaw, but did not hand it over to Mestwin until the latter was able to force them out by concluding an alliance with Boleslaw Pobozny, duke of Greater Poland. Under the rule of Brandenburg, conflicts erupted between the Slavic and German populations, which cost many lives. In the 1282 Treaty of Kępno Mestwin II promised his Pomerelian duchy to his ally Przemysł II, duke and later king of Poland, who succeeded to the duchy after Mestwin's death in 1294. The Margraves of Brandenburg also claimed the