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.
History of Portugal
Portugal traces its national origin to 24 June 1128, the date of the Battle of São Mamede. Afonso proclaimed himself "Prince of Portugal" after this battle and in 1139, he assumed the title "King of Portugal". In 1143, the Kingdom of León recognised him as King of Portugal by the Treaty of Zamora. In 1179, the papal bull Manifestis Probatum of Pope Alexander III officially recognised Afonso I as king. After the Battle of São Mamede, the first capital of Portugal was Guimarães, from which the first king ruled. Later, when Portugal was already officially independent, he ruled from Coimbra.