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.
Portugal
Portugal as a country was established during the Christian "Reconquista" against the Moors who had invaded the Iberian Peninsula in 711 AD. Despite attempts at independence since its foundation as a county in 868, only after the Battle of São Mamede in 1128, where Portuguese forces led by Afonso Henriques defeated forces led by his mother, Teresa, the County of Portugal affirmed its sovereignty and Afonso styled himself Prince of Portugal. He would later be proclaimed King of Portugal at the Battle of Ourique in 1139 and was recognised as such, by neighbouring kingdoms, on the Treaty of Zamora, in 1143.