The Treaty of Rio de Janeiro is the treaty between the Kingdom of Portugal and the Empire of Brazil, signed August 29, 1825, which recognized Brazil as an independent nation, formally ending Brazil’s war of independence.