Answer
In 1822, Dom Pedro I, the son of the Portuguese king João VI, declared Brazil's independence from Portugal. This act was prompted by a number of factors, including the growing resentment of Brazilian elites towards Portuguese rule, the desire for greater autonomy from the mother country, and the rise of nationalism in Brazil.