 Further modernization took place under Ferdinand I of the Two Sicilies.In 1768, on the occasion of his marriage to Maria Carolina of Austria, under the direction of Ferdinando Fuga, the great hall was rebuilt and the court theater added.During the second half of the 18th century, a "new wing" was added, which in 1927 became the Vittorio Emanuele III National Library.