Brazil gained independence from Portugal in 1822.

An excerpt from the article 31 facts about Brazil

Portugal officially recognized Brazil on August 29, 1825. The monarchy, on the other hand, was overthrown by a military coup on November 15, 1889, and the day is now a national holiday, Republic Day.

At the turn of the 20th century, more than five million immigrants from Europe and Asia arrived in Brazil.