DomJohn VI , known as "the Clement" (o Clemente), was King of the United Kingdom of Portugal, Brazil and the Algarves from 1816 to 1825, and after the recognition of Brazil's independence, titular Emperor of Brazil and King of Portugal until his death in 1826.