Answer:
Brazil gained its independence from Portugal on September 7th, 1822. The process of gaining independence began in 1808 when the Portuguese Royal Family and the court moved to Brazil to escape the French invasion of their homeland. The royal family stayed in Brazil until 1821, when Dom Pedro declared Brazil's independence.
Step-by-step explanation: