Answer
In 1826, King John VI, monarch of the United Kingdom of Portugal, Brazil, and the Algarves, passed away. His reign witnessed significant historical events, encompassing the transfer of the Portuguese court to Brazil during the Napoleonic Wars and Brazil's subsequent elevation to a kingdom within the united realm. His demise marked the end of an era marked by geopolitical shifts and transformative developments within the Portuguese Empire.