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.
Portuguese Empire
The origin of the Kingdom of Portugal lay in the "reconquista", the gradual reconquest of the Iberian peninsula from the Moors. After establishing itself as a separate kingdom in 1139, Portugal completed its reconquest of Moorish territory by reaching Algarve in 1249, but its independence continued to be threatened by neighbouring Castile until the signing of the Treaty of Ayllón in 1411.