In 1706, during the Great Northern War, Charles XII's army sacked the castle. The destroyed its fortifications. Several decades later, the Radziwills asked some German and Italian architects to fix and enlarge the chateau. Antoni Zaleski decorated its yellow facades with baroque stucco work. The 16th-century castle gates were also reconstructed. It was at this time that the three separate buildings surrounding the central courtyard were joined into a single structure.