The resulting Spanish War of Succession (1701–14) may have benefitted Charles's foreign allies but was a disaster for the Catalans, Valencians and Aragonese. The Treaty of Utrecht (1713) ended the possibility of Catalonia's resistance to Bourbon rule, which its capital, Barcelona, surrendered on 11 September 1714. The Bourbon king, determined to punish what he saw as sedition from Catalonia, Valencia and Aragon, established the Nueva Planta decrees (1716), abolishing the Catalan, Valencian and Aragonese institutions and rights, and with it the Catalan Courts, the Generalitat, the Council of One Hundred of Barcelona and the Catalan constitutions, except the civil law, replacing them with the Castilian ones and establishing absolutism as the new form of government. In order to ensure it, he created a new Royal Audience as seat of government of the province and replaced the traditional vegueries with corregimientos as the territorial division of Catalonia.