This decline was hastened by the independence in 1822 of the country's largest colonial possession, Brazil