 Complete the following phrase:  The village was granted Magdeburg rights on February 16, 1271, by Prince 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 Kraków, 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 