The city was completely destroyed by the Eruption of Vesuvius in 1631, but was rebuilt. Charles III of Spain, King of Naples and Sicily, built a royal palace in the town between 1738 and 1748. After Garibaldi defeated the Bourbons in 1860, the palace was turned into the Portici botanic gardens and the Royal Higher School of Agriculture. It once contained the antiquities from Herculaneum, which have since been moved to Naples.