Answer
John VI, born in 1767, reigned as the King of the united Kingdom of Portugal, Brazil, and the Algarves from 1816 to 1826. His reign encompassed notable events such as the transfer of the Portuguese royal court to Brazil during the Napoleonic invasions and the subsequent elevation of Brazil to a kingdom within the United Kingdom of Portugal, Brazil, and the Algarves.