 The town proper was surrounded by town walls, except on the side of river Vistula, where instead of walls there stood huge massive grain silos, from where grain could be transported through wooden pipes to the embankment of the river.Following the First Partition of Poland in 1772, the city was annexed by the German Kingdom of Prussia.In 1773 the town had a population of only 2,172 persons.