Last significant reconstruction of the castle took place between 1657–1691, under the leadership of the bishops Jakuba Zadzika,[3] Piotr Gembicki, Piotr Tylicki, Marcin Szyszkowski, Andrzej Trzebicki and Jan Małachowski. The building took the form of the Baroque, with a horseshoe-shaped plan. The last investor in the residence was in the 2nd half of the eighteenth century by Bishop Cajetan Sołtyk, employing eminent architect, Jakuba Fontanę.