Brazilian independence was a series of political and military events that led the Kingdom of Brazil to separate from the United Kingdom of Portugal, Brazil and the Algarves. It is celebrated on 7 September 1822, when Prince Regent Pedro of Braganza, beside the Ipiranga brook, declared independence from Portugal in what became known as the Cry of Ipiranga. Portugal formally recognized the new state through the Treaty of Rio de Janeiro, signed in 1825.
Royal Flight and Return




After the French invasion of Portugal in 1807, the Portuguese royal family fled to Rio de Janeiro, which became the seat of the Portuguese government. In 1815 Brazil was elevated to a kingdom united with Portugal. When a liberal revolution in Portugal in 1820 forced the royal family back to Lisbon, the Portuguese courts sought to return Brazil to colonial status. Prince Pedro, left in charge of Brazil, chose to stay and rebel against these demands.
War and Recognition




The war of independence began with the expulsion of Portuguese troops from Pernambuco in 1821. The Brazilian Army, formed from mercenaries, civilians and some Portuguese colonial troops, fought Portuguese forces that held parts of the country. A republican revolt in Pernambuco, the Confederation of the Equator, was harshly repressed. After four years of conflict, Portugal recognized Brazil's independence in 1825, in exchange for a substantial compensation and treaties that banned the Atlantic slave trade and granted preferential tariffs to British goods.
