How did Brazil gain its indepedence?

it was conquered by france and then liberated
it was freed after a slave uprising overthrew the plantation owners
it was taken away from spain by the treaty of tordesillas
it was declared an independent empire portugal's royal family

moved to Brazil fleeing from Napoleon's invasion and eventually declared Brazil's independence as a constitutional monarchy with Pedro I as the emperor.

it was declared an independent empire portugal's royal family

Correct! :)

Brazil gained its independence through a series of events in the early 19th century. The correct option in this case is "it was declared an independent empire by Portugal's royal family." Here's the explanation:

1. Portugal's royal family and Napoleon's invasion: In 1807, Napoleon Bonaparte's army invaded Portugal. In order to avoid capture, the Portuguese royal family, led by Prince Regent Dom João VI, fled to Brazil. This marked the beginning of Brazil's unique path to independence.

2. Brazil as the seat of the Portuguese Empire: With the royal family establishing their court in Rio de Janeiro, Brazil became the de facto capital of the Portuguese Empire. This brought about a series of changes and developments within the colony.

3. The rise of Brazilian identity: The presence of the royal court in Brazil contributed to the rise of a Brazilian national identity. The colony experienced an economic and cultural boom, and the Brazilian elite began to see themselves as distinct from Portugal.

4. Dom João VI's return to Portugal: In 1821, with the defeat of Napoleon, Dom João VI returned to Portugal, leaving his son, Dom Pedro, as regent in Brazil. However, tensions grew between Brazil and the Portuguese authorities, as the Brazilians sought greater autonomy.

5. The Cry of Ipiranga and the declaration of independence: On September 7, 1822, Dom Pedro, influenced by the growing Brazilian independence movement, declared Brazil's independence from Portugal. This event is known as the "Cry of Ipiranga" (Grito do Ipiranga) and it marked the official beginning of Brazil as an independent nation.

6. Recognition and constitutional monarchy: Following the declaration, Brazil faced a period of consolidation and struggle for international recognition. Eventually, other nations formally recognized Brazil's independence. Dom Pedro was crowned Emperor Pedro I of Brazil, and the country adopted a constitutional monarchy model.

In summary, Brazil gained its independence when Prince Regent Dom Pedro declared Brazil's separation from Portugal in 1822, which marked the establishment of the Empire of Brazil.