Local starosts granted privileges to the guilds of shoemakers, bakers, tailors, butchers, and wheelwrights. In 1622, the Polish Sejm merged the functions of the Kiszpork/Dzierzgoń starost and the Malbork voivode. Sejmiks (local parliaments) of the local nobility were held in the castle. A battle between Poland and Sweden was fought in Kiszpork in 1627, during the Polish–Swedish War (1626–1629). In 1647 a privilege was granted, allowing the trade in wine. In 1772 it was annexed by the Kingdom of Prussia during the First Partition of Poland and was incorporated into the new province of West Prussia. During the Napoleonic Wars, the town was captured by France in 1807. Christburg became part of the German Empire upon its foundation in 1871 during the unification of Germany. Around 1900 Christburg had one Protestant church, two Catholic churches, a synagogue, a county court, a brewery and a dairy. Until 1919 Christburg belonged to the administrative district of Regierungsbezirk Marienwerder in the German Province of West Prussia. In 1920, after World War I and the reestablishment of independent Poland, a plebiscite was held to determine whether the region would be part of Germany or Poland. In the town 2,571 inhabitants voted to remain in Weimar German East Prussia, 13 votes supported Poland, thus the town remained part of Germany. Over the time span 1919–39 Christburg belonged to the administrative district of Regierungsbezirk Westpreußen in the Province of East Prussia, and from 26 October 1939 until 1945 to Regierungsbezirk Marienwerder in the new province of Reichsgau Danzig-West Prussia. During World War II, within today's town limits, the Germans established and operated a forced labour subcamp of the German military prison in Grudziądz in German-occupied Poland. In the final stages of the war the town's populace was evacuated by the Germans on January 21–22, and on January 24, 1945 the German administration left the town, which then fell to the Soviets. The first local Polish official was appointed in April 1945. Several months later the town was handed over to Poland, and the name Dzierzgoń, based on an Old Prussian Zirgūni name, was restored. At the turn of 1945 and 1946, the Polish resistance movement carried out successful attacks against communists and Soviets, acquiring weapons, uniforms and money. The town was resettled by Poles from Polish areas annexed by the Soviet Union and Ukrainians expelled from southeast Poland in 1947. The former Roman Catholic Cloister is