 In 1776 the new owner, Andrzej Zamoyski, restored the rank of the settlement as a city, due to a privilege granted by King Stanisław August Poniatowski.However, only two years later, in 1778, the village was again destroyed by a large fire.In the following years the city experienced numerous fires and floods, and the population declined dramatically due to epidemics such as cholera and smallpox.