It is known since 1575 when king Stephan Batori granted a status of a regimental city. According to other souces the city was founded in 1530 when it has received the Magdeburg Right and an emblem - on azure field paty cross or, in the base is eight-pointed star argent.