The War of Spanish Succession was the relevant fact of changes in Spain during 18th century.
The War erupted over the controversial successor to Carlos II The Bewitched. The struggle to the throne finished with the victory of France, and Philip V burst onto the Spanish territories with the enormous influence of his grandfather, Louis XVI. This fact was the main reason of the policy reversal in Spain.
The loss of Spanish possessions in 1713, according the Treaty of Utrech that resolved the international issues among different European countries, was the third effect over the ancient Great Empire. The new map of Spanish dominions, the action of the diplomats during next century, and the personal commitment of Philip V and his successors to maintain the territories centralized give a true and fair view of institutions and law.
Accordingly, and in line with the Spanish legal history this period is strongest linked to the Spanish Bourbons alliance with France. The dynasty suffered overthrown during two centuries and restored several times, to the present day. However it was a period of implementing reforms, generating resources and strengthening Spain’s culture and economy, though with mixed results due to political weakness.