Which of the following events eventually led to Brazi's independence?

A
Getúlio Vargas' overthrow of the government
B
the liberation of enslaved Afro-Brazilians
1x
C
Simón Bolívar's uprising
LIX
D
Napoleon's invasion of Portugal

D. Napoleon's invasion of Portugal.