at the end of the 18th century , the castle was rebuilt under the leadership of jaan samuel becker, whort architect of sopek. thanks to him, the building turned into a luxurious palace and castle residence. kings and ambassadors came here. they say it was even stored in the local basements. grand duchy of lithuania. the main axis of the ensemble united the palace with an entrance gate, interpreted as a triumphal arch. the side buildings were intended for an art gallery, a library, the largest in the grand duchy of lithuania, arena and theater. the latter's technical equipment made it possible to organize complex productions with multiple changes of scenery; in other performances up to 100 actors and musicians were employed. zotchi betrayed everything to the composition. the ensemble has a baroque expression, and the façade has a rich classicist decor. thus, the impregnable fortress was rebuilt and turned into a beautiful palace complex, where one could find magnificent gardens and parks along with amazing greenhouses. for his architectural masterpiece, becker received from sopek lifetim