After the War of the Spanish Succession, with the intention of improving naval administration, the maritime departments were created, dividing the coast into three sectors: Cartagena administered the Mediterranean; Cadiz administered the southern Mediterranean, while Ferrol controlled the Cantabrian coast. An arsenal was built for naval construction in each department, so the Barcelona Dockyard lost its naval function and became progressively more involved with activities associated with the manufacture of artillery and the accommodation of armies.
Since the 16th century the Dockyard had been a permanent military establishment, equipped with a permanent garrison, but it was in the 18th century that plans were considered for enlargement and improvement of the inadequate facilities, and the New Barracks, near the Rambla, were built to house the cavalry troops. Over time, these facilities would also lodge artillery and engineering troops.
Throughout the modern period, the Dockyard was used for naval construction and as an artillery and munitions store.
After the War of the Spanish Succession when maritime activity was removed to Cartagena, the Dockyards were used as an Artillery Ground, that is, as a store for arms, munitions and material artillery-related material.
In the nineteenth century the Dockyards would become an armoury, and workshops and spaces for cannon-building would appear on the site.