The transfer of the Portuguese court to Brazil in 1808 was a significant step toward Brazilian independence. It elevated Brazil's status and made recolonization difficult. Brazilian independence was achieved in 1822 due to factors like British support, restrictions on Brazilian trade, and Dom Pedro's refusal to return to Portugal. After independence, Brazil experienced political turmoil but stabilized under Emperor Dom Pedro II. Slavery ended in 1888. The economy initially relied on exports like sugar, cotton, and coffee, with infrastructure and industry developing in the late 1800s. However, Brazil faced growing international competition in exports by 1900.