The city was then owned consecutively by aristocratic Polish families of Stadnicki, Lubomirski, and Potocki. Łańcut was purchased by Stanisław Lubomirski in 1629, at which time he secured the services of architect Matteo () Trapola and the stuccoist Giovanni Battista Falconi, in order to build a fortified residence in the town, Łańcut Castle, completed in 1641 and reconstructed many times since. Jerzy Sebastian Lubomirski, fearing attack from the Swedes, further strengthened the fortifications. To perform these works he employed Tylman van Gameren, a Dutchman and one of the most prominent foreign architects to ever work in Poland.