 In 1794, after the suppression of the Kościuszko Uprising, the Corps of Cadets was closed down.In 1814, a fire destroyed the barracks before the palace, and in 1816 their place was taken initially by two side pavilions designed by Jakub Kubicki.That same year, the palace became the seat of Warsaw University.