The Polish Corridor (German: Polnischer Korridor; Polish: Pomorze, Korytarz polski), also known as Danzig Corridor, Corridor to the Sea or Gdańsk Corridor, was a territory located in the region of Pomerelia (Pomeranian Voivodeship, eastern Pomerania, formerly part of West Prussia), which provided the Second Republic of Poland (1920–1939) with access to the Baltic Sea, thus dividing the bulk of Germany from the province of East Prussia. The Free City of Danzig (now the Polish city of Gdańsk) was separate from both Poland and Germany. A similar territory, also occasionally referred to as a corridor, had been connected to the Polish Crown as part of Royal Prussia during the period 1466–1772.In the 10th century, Pomerelia was settled by Slavic Pomeranians, ancestors of the Kashubians, who were subdued by Boleslaw I of Poland. In the 11th century, they created an independent duchy. In 1116/1121, Pomerania was again conquered by Poland. In 1138, following the death of Duke Bolesław III, Poland was fragmented into several semi-independent principalities. The Samborides, principes in Pomerelia, gradually evolved into independent dukes, who ruled the duchy until 1294. Before Pomerelia regained independence in 1227, their dukes were vassals of Poland and Denmark. Since 1308, following succession wars between Poland and Brandenburg, Pomerelia was subjugated by the Monastic state of the Teutonic Knights in Prussia. In 1466, with the second Peace of Thorn, Pomerelia became part of the Polish-Lithuanian Commonwealth as a part of autonomous Royal Prussia. After the First Partition of Poland in 1772 it was annexed by the Kingdom of Prussia and named West Prussia, and became a constituent part of the new German Empire in 1871. Thus the Polish Corridor was not an entirely new creation: the territory assigned to Poland had been an integral part of Poland prior to 1772, but with a large degree of autonomy.