 Over the years the palace was enlarged and filled with more art.In 1787, on the advice of Jacob Philipp Hackert, a laboratory for the restoration of paintings was created.When the Parthenopaean Republic was declared in 1799, King Ferdinand IV fled to Palermo on board Nelson's "Vanguard", taking the most valuable items from the museum with him.