|Part of the War of Independence of Brazil|
|Date||7 September 1822|
|Location||São Paulo and Bahia, Brazil|
José Bonifácio de Andrada
|Outcome||Independence of the Kingdom of Brazil from the United Kingdom of Portugal, Brazil and the Algarves and subsequent formation of the Empire of Brazil under Emperor Dom Pedro I (1798–1834, reigned 1822–1831)|
The Independence of Brazil comprised a series of political and military events that led to the independence of the Kingdom of Brazil from the United Kingdom of Portugal, Brazil and the Algarves as the Brazilian Empire. Most of the events occurred in Bahia, Rio de Janeiro, and São Paulo between 1821–1824.
It is celebrated on 7 September, although there is a controversy whether the real independence happened after the Siege of Salvador on July 2 of 1823 in Salvador, Bahia where the independence war was fought. However, September 7th is the anniversary of the date in 1822 that prince regent Dom Pedro declared Brazil's independence from his royal family in Portugal and the former United Kingdom of Portugal, Brazil and Algarves. Formal recognition came with a treaty three years later, signed by the new Empire of Brazil and the Kingdom of Portugal in late 1825.