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-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.
As of the Italian census of 2001, the city had a population of 60,218 inhabitants. The city's land area is 4.52 km²; with a population density of 13,322.57 / km², Portici is the most densely populated comune in Italy.