and Land of Sandomierz. The boundary was marked by the Nida river. In 1195, during the medieval so called Fragmentation of Poland (see History of Poland during the Piast dynasty), a battle between two dukes - Leszek the White of Krakow and Sandomierz and Mieszko the Old of Poznań took place here. In 1218, Bishop Wincenty Kadlubek resigned from his post and settled in the Jędrzejów Monastery, where he died in 1223. In the course of the time, pilgrims began to visit his tomb, among those who prayed here, was King John III Sobieski on the way to the Battle of Vienna. The village was granted Magdeburg rights on February 16, 1271, by Duke Bolesław V the Chaste. The town charter was confirmed by several Polish kings, including Sigismund I the Old, who in 1510 allowed for weekly fairs and three markets a year. Jędrzejów prospered, with a town hall and other public buildings constructed here in the 15th and 16th century, during the Polish Golden Age. In 1581, the town had 77 artisans, including 20 shoemakers, 10 bakers and 5 butchers. Jędrzejów traded with the city of Krakow, where it sold local products, such as bee wax, honey and tar. In January 1576, supporters of Stephen Báthory called a council at Jędrzejów, as the town was an important administrative centers, where sejmiks took place. Jędrzejów was captured, looted and destroyed by Swedish army of King Charles XII, during the Great Northern War. Furthermore, in the mid-18th century, large parts of the monastery burned down, to be rebuilt in Baroque style. In the 1790s, during the Kościuszko Uprising, Tadeusz Kościuszko stationed here before the Battle of Szczekociny, meeting Józef Poniatowski (June 27, 1794). Following the Third Partition of Poland (1795), Jędrzejów was annexed by Austria and included within the newly formed province of West Galicia. Following the Austro-Polish War of 1809 it was regained by Poles and included within the short-lived Duchy of Warsaw, and after its dissolution, from 1815 to 1915 it was part of Russian-controlled Congress Poland. In 1819, the abbey was closed, but monks dwelled in the complex until 1855, when last Cistercian monk, Wilhelm Ulawski, died. In 1858, Franciscans moved in, but Russians kicked them out in 1870, opening a teachers college in the monastery. The Cistercians did not return until 1945. Residents of Jędrzejów actively supported November Uprising, in the cellars of the monastery a