Four months later, on 25 August 1825, Uruguay officially declared its independence from Brazil. After 500 days of fighting (the Argentina–Brazil War), Brazil recognized Uruguay's independence in 1828.