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–Spain relations
In 1974 the dictatorship of the "Estado Novo" was brought to an end by a military "coup" known as the Carnation Revolution. This left Spain increasingly isolated from the rest of Europe, which lasted until the death of Franco a year later, after which Spain returned to being a constitutional monarchy and embraced parliamentarism. The PREC that had followed the Carnation Revolution in Portugal came to an end in 1976 and Portugal also became a democracy.