In 1751 the village was granted with a royal city charter, as an effect of extensive efforts of its owner, Bishop Marcin Załuski, who wanted to turn it into a large centre for pilgrims. However, the plan failed in the effect of the Kościuszko's Uprising and the Partitions of Poland, during which the town was severely damaged by Russian forces during their march towards the Warsaw's suburb of Praga.
In 1751, the village received a royal city charter as a result of Bishop Marcin Załuski's extensive efforts to transform it into a major pilgrimage hub. However, his plan was thwarted by the Kościuszko Uprising and the Partitions of Poland, which led to significant damage to the town at the hands of Russian forces during their march towards Warsaw's Praga suburb.