After the Free City of Danzig became independent, the area was incorporated into it due to a German majority as part of Danziger Höhe. After Germany attacked Poland and annexed the free city, it became part of Nazi Germany until the Soviets liberated it in the East Pomeranian offensive.