 The town, located on a trading route, was granted city rights in 1725 by Frederick William I of Prussia.The town has been militarily occupied frequently.During the Seven Years' War it was held by Russian troops for four years.