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 in the Middle Ages
In 1171 Afonso concluded a seven years truce with the Moors; weakened by his wound and by old age, he could no longer take the field, and when the war broke out afresh he delegated the chief command to his son Sancho. Between 1179 and 1184 the Moors retrieved many of their losses in Alentejo, but were unable to retake Santarém and Lisbon. In 1179, by the papal bull "Manifestis Probatum", Pope Alexander III acknowledged Portugal as an independent nation and Afonso and his heirs as her rightful kings. Afonso died on December 6, 1185. He had secured for Portugal both the status and the name of an independent kingdom, and had extended its frontier southwards from the Mondego to the Tagus. He had laid the foundation of its navy and had strengthened, if he did not inaugurate, that system of co-operation between the Crown and the military orders which afterwards proved of incalculable service in the maritime and colonial development of the nation.