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.
The village was granted city charter status in 1751 due to Bishop Marcin Załuski's ambitious plans to establish it as a prominent pilgrimage destination. Unfortunately, his vision was dashed by the Kościuszko Uprising and the subsequent Partitions of Poland, which left the town severely scarred by Russian forces during their advance on Warsaw's Praga.