caused Spanish Creoles to question their allegiance to the metropole, stoking independence movements that culminated in bloody wars of independence, which lasted almost two decades
At the same time, the Portuguese monarchy relocated to Brazil during Portugal's French occupation. After the royal court returned to Lisbon, the prince regent, Pedro, remained in Brazil and in 1822 successfully declared himself emperor of a newly independent Brazil.