section_path: History/Independent empire
section_name: Independent empire
paragraph_text: Independent empire
  
  Tensions between Portuguese and Brazilians increased and the Portuguese Cortes, guided by the new political regime imposed by the Liberal Revolution, tried to re-establish Brazil as a colony. The Brazilians refused to yield, and Prince Pedro decided to side with them, declaring the country's independence from Portugal on 7 September 1822. A month later, Prince Pedro was proclaimed the first Emperor of Brazil, with the royal title of Dom Pedro I, resulting in the founding of the Empire of Brazil.
  
  The Brazilian War of Independence, which had already begun along this process, spread through the northern, northeastern regions and in the Cisplatina province. The last Portuguese soldiers surrendered on 8 March 1824; Portugal officially recognized Brazilian independence on 29 August 1825.
  
  On 7 April 1831, worn down by years of administrative turmoil and political dissent with both liberals and conservatives, including an attempt of republican secession and unreconciled to the way that absolutists in Portugal had given in the succession of King John VI, Pedro I departed for Portugal to reclaim his daughter's crown after abdicating the Brazilian throne in favor of his five-year-old son and heir (Dom Pedro II).
  
  As the new Emperor could not exert his constitutional powers until he came of age, a regency was set up by the General Assembly. In the absence of a charismatic figure who could represent a moderate face of power, a series of localized rebellions took place, such as the Cabanagem in Grão-Pará, the Malê Revolt in Salvador, the Balaiada (Maranhão), the Sabinada (Bahia), and the Ragamuffin War, which began in Rio Grande do Sul and was supported by Giuseppe Garibaldi. These emerged from the provinces' dissatisfaction with the central power, coupled with old and latent social tensions peculiar to a vast, slaveholding and newly independent nation state. This period of internal political and social upheaval, which included the Praieira revolt in Pernambuco, was overcome only at the end of the 1840s, years after the end of the regency, which occurred with the premature coronation of Pedro II in 1841.
  
  During the last phase of the monarchy, internal political debate centered on the issue of slavery. The Atlantic slave trade was outlawed in 1850, as a result of the British Aberdeen Act and the Eusébio de Queirós Law, but only in May 1888, after a long process of internal mobilization and debate for an ethical and legal dismantling of slavery in the country, was the institution formally abolished with the approval of the Golden Law.
  
  The foreign-affairs policies of the monarchy dealt with issues pertaining Brazil's neighboring countries in the Southern Cone. Long after the Cisplatine War that resulted in the independence of Uruguay, Brazil won three international wars during the 58-year reign of Pedro II: the Platine War, the Uruguayan War and the devastating Paraguayan War, the largest war effort in Brazilian history.
  
  Although there was no desire among the majority of Brazilians to change the country's form of government, on 15 November 1889, in disagreement with the majority of the Imperial Army officers, as well as with rural and financial elites, the monarchy was overthrown by a military coup. A few days later, the national flag was replaced with a new design that included the national motto " Ordem e Progresso ", influenced by positivism. 15 November is now Republic Day, a national holiday.