 After the Peace of Toruń in 1466 it came under Polish suzerainty as a fief.After Reformation until 1702 church services in the only church were conducted in the Masurian dialect of Polish, spoken by the culturally Germanized but ethnically Polish (Masurian) majority population of the town.A year earlier, in 1701, the town became part of the Kingdom of Prussia.