Cartagena is a Spanish Mediterranean city and naval station in the southeast of the Iberian Peninsula in the autonomous community of Region of Murcia. Cartagena has been the capital of the Spanish Navy's Maritime Department of the Mediterranean since the arrival of the Spanish Bourbons in the eighteenth century. As far back as the sixteenth century it was one of the most important naval ports in Spain, together with Ferrol in the North. It is a walled town and has a fine harbour defended by forts. In the time of Philip II of Spain, it was a major naval seaport of Spain. It is still an important naval seaport, the main military haven of Spain, and there is a big naval shipyard.