Union of Lublin
After the Union of Lublin the castle became one of the most important residences in the central part of the Polish–Lithuanian Commonwealth.