The reconstruction after the Raid on Cartagena (1697) was initially slow, but with the ending of the War of the Spanish Succession around 1711 and the competent administration of D. Juan Diaz de Torrezar Pimienta the walls were rebuilt, the forts reorganized and restored and the public services and buildings reopened. By 1710, the city was fully recovered. At the same time, the slow but steady reforms of the restricted trade policies in the Spanish Empire encouraged the establishment of new trade houses and private projects. During the reign of Philip V of Spain the city had many new public works starting or ending like the new fort of San Fernando, the Hospital of the Obra Pía and the full paving of all the streets and the opening of new roads.