During the Greater Poland Uprising, the town was taken over by its inhabitants, and as a result it returned to Poland, after the country regained independence in 1918.
As a result of the Greater Poland Uprising, the town was recaptured by its local population, and subsequently it returned to Polish sovereignty, after Poland regained its freedom in 1918.