During the last Polish–Teutonic War, in 1521 the Teutonic Knights, while retreating after the unsuccessful siege of Elbląg, briefly captured the town. In 1525, during the Reformation, the Church property formally became the Lutheran parish church. This was undertaken by a former monk named Bommler, son of the mayor of Tolkmicko. The town however remained in the Roman Catholic Bishopric of Warmia and thus remained subject to Catholic rule. After 1569 the special legal position of Polish Prussia within the Kingdom of Poland was slowly undermined, and the town was formally absorbed into Poland proper in 1572. It became part of the larger Greater Poland Province of the Polish Crown.