By 1825, the Spanish Empire had lost control of all of its territories in the Americas with the exception of Puerto Rico and Cuba. These two possessions were also demanding more autonomy, and pro-independence movements had been gathering strength. Trying to forestall the loss of these colonies, the Spanish Crown revived the Royal Decree of Graces of 1815.