After the signing of the Treaty of Versailles, and after much protest by the German majority of its population, Schneidemühl was not included in the Polish Second Republic after World War I. After the Greater Poland Uprising, the new Polish-German border ran 5 kilometers south of the city.