Gained city rights in 1632, was the county seat since 1683, city of P.O. Hviezdoslav. Gained a city look after a fire in 1834.