The construction of the castle started in 1580, initiated by a local nobleman Stanislaw Siecienski of Siecin, who came to the area from Mazovia. Works lasted for 53 years, and the castle was not completed until 1633, by Marcin Krasicki, son of Stanisław and Voivode of Podolia, who in the meantime had changed his name. Originally, the castle was a fortified stronghold, protecting southern border of the Polish–Lithuanian Commonwealth.
The castle's initial purpose was as a defensive structure on the southern border of the Polish–Lithuanian Commonwealth. It was built in stages over 53 years, with construction starting in 1580 and completion in 1633. The castle was overseen by Stanislaw Siecienski, who came from Mazovia to oversee its construction.