Kingdom of Portugal
After the Portuguese Restoration War of 1640–1668, the kingdom passed to the House of Braganza and thereafter to the House of Braganza-Saxe-Coburg and Gotha. From this time, the influence of Portugal declined, but it remained a major power due to its most valuable colony, Brazil. After the independence of Brazil, Portugal sought to establish itself in Africa, but was ultimately forced to yield to the British interests, leading to the collapse of the monarchy in the 5 October 1910 revolution and the establishment of the First Portuguese Republic.
United Kingdom of Portugal, Brazil and the Algarves
By a provision of the Letters Patent of 13 May 1825, confirmed by the Treaty on the Recognition of Independence in spite of the secession of Brazil from the Portuguese Monarchy, the Portuguese King, John VI, was allowed to use for the remainder of his life the honorary title of "Emperor of Brazil", with the caveat that this title was honorary and ceremonial only, and that Pedro I and his successors in the independent Brazilian Crown were the only actual Emperors of Brazil. This honorary title ceased to have effect upon the demise of King John VI on 10 March 1826.