Answer:
In 1500 Pedro Alvarez Cabral disembarked in Brazil and quickly became a Portuguese colony. Pedro was going to Southern Africa by missed his destination...
In 1807 Napoleon invaded Portugal, making the Portuguese prince Dom Joao (Joao VI) flee to Brazil. He moved the Supreme Court, Council of State, and several institutions to Brazil. Later on, by decree, he made Brazil a kingdom.