During the imperial era, King John VI of Portugal briefly held the honorific style of Titular Emperor of Brazil under the [[Treaty of Rio de Janeiro (1825)|1825 Treaty of Rio de Janeiro]], by which Portugal recognized the [[independence of Brazil]]. The style of Titular Emperor was a life title, and became extinct upon the holder's demise. John VI held the imperial title for a few months only, from the ratification of the Treaty in November 1825 until his death in March 1826. During those months, however, as John's imperial title was purely honorific, Emperor Pedro I remained the sole monarch of the empire.
Members of the [[House of Braganza]] had already ruled Brazil as part of the [[Kingdom of Portugal]] since the restoration of the independence of Portugal in 1640. Previous [[List of Portuguese monarchs|portuguese monarchs]] of another royal houses also ruled the [[Colony of Brazil]] from [[Lisbon]] since 1500. Thus the monarchical title to Brazil was created only in 1815 when the colony was elevated to the status of [[Kingdom of Brazil|Kingdom]] equal and united with [[Kingdom of Portugal|Portugal]].