Estado Novo (Portugal)
King Carlos I of Portugal confirmed colonial treaties of the 19th century that stabilized the situation in Portuguese Africa. These agreements were, however, unpopular in Portugal, where they were seen as being to the disadvantage of the country. In addition, Portugal was declared bankrupt twice—first on 14 June 1892 and again on 10 May 1902—causing industrial disturbances, socialist and republican antagonism, and press criticism of the monarchy. Carlos responded by appointing João Franco as Prime Minister and subsequently accepting Parliament's dissolution. In 1908, Carlos I was assassinated in Lisbon. The Portuguese monarchy lasted until 1910 when, through the 5 October revolution, it was overthrown and Portugal was proclaimed a republic. The overthrow of the Portuguese monarchy in 1910 led to a 16-year struggle to sustain parliamentary democracy under republicanism – the Portuguese First Republic (1910–1926).
Spanish Empire
In 1640, Spain had already experienced the loss of Portugal, following its revolt against Spanish rule, and brought to an end the Iberian Union, and the establishment of the House of Braganzaunder king John IV of Portugal. He had received widespread support from the Portuguese people, and Spain was unable to respond, since it was at war with France and Catalonia revolted that year. with the war against France. Spain and Portugal co-existed in a "de facto" state of peace from 1644 to 1656. When John died in 1656, the Spanish attempted to wrest Portugal from his son Alfonso VI of Portugal but were defeated at Ameixial (1663) and Montes Claros (1665), leading to Spain's recognition of Portugal's independence in 1668, during the regency of Philip IV's young heir, Charles II, who was seven at the time.