The War of Brazilian Independence was a conflict that took place from 1822 to 1824, resulting in Brazil's separation from Portugal and the establishment of an independent empire. This war marked a significant shift in the power dynamics of Portuguese South America, as it signified the end of colonial rule and the emergence of Brazil as a sovereign nation. The struggle was characterized by military confrontations, political maneuvering, and the involvement of various factions within Brazil and Portugal.