In 1610 the castle was already inhabited. At once it became the center of economical, political and cultural life of the city and its owners, serving also as a defense for the local people from Tatars attacks.
At the end of XVII c. the castle was a favourite residance of Jan III Sobieski, the Polish king. It was the period of the greatest castle prosperity.
After numerous reconstructions the castle has got its modern look. Its reconstruction is going on now, though for visitors the inner courtyard and the museum are available.