When Joćo VI returned to Portugal to deal with
a liberal revolution he left his son Pedro as regent.
When it became clear that Brazil was to return
to colonial status, Pedro declared its
independence in 1822 and became the constitutional
emperor, Pedro I.