Knights and squires of the Prabuty district were co-founders of the anti-Teutonic Prussian Confederation in 1440. Since its establishment, part of the population wanted the town to join the organization. In 1451, the town council eventually joined the Prussian Confederation, but bishop Kaspar Linke expelled the councilors and confiscated their property. The town was accepted again by the organization in February 1454, and upon the request of the organization, in March 1454, Polish King Casimir IV Jagiellon incorporated the region and town to the Kingdom of Poland, and the Thirteen Years' War broke out. Around that time, the town was mentioned in documents as "Prabuth". After the Battle of Chojnice, in which Polish forces were defeated, the town was forced to side with the Order again. After the war and the Second Peace of Thorn (1466), the town became a part of Poland as a fief, although Pomesanian bishops retained their rule over the area. In 1525 the town became part of Ducal Prussia, a vassal state of Poland. In 1556, a synod was held in the town.