In the early 19th century, while the island passed under the Spanish crown's dominion, Mahon's Dockyard then enjoyed a new popularity thanks to the creation of building sites, warehouses, powder magazines and deposit locations for the coal. In 1859, the activities of the base diversified. Military ships and merchant ships were built there.