History of Portugal (1834–1910)
Militant Republicans and their allies in the Carbonária were not willing to remain in the shadows of the constitutional monarchy. Between 4–5 October 1910, members of the Carbonária, republican youth, and elements of the army instigated a coup d'état against the already weak constitutional monarchy. The young king and his family, after a few miscues, escaped from the Palace in Mafra to exile in England. On the morning of 5 October 1910, the Republic was declared from the balcony of Lisbon City Hall, ending eight centuries of monarchy in Portugal.
Portuguese Empire
When King Philip II of Spain (Philip I of Portugal) inherited the Portuguese crown in 1580 there began a 60-year union between Spain and Portugal known to subsequent historiography as the Iberian Union. The realms continued to have separate administrations. As the King of Spain was also King of Portugal, Portuguese colonies became the subject of attacks by three rival European powers hostile to Spain: the Dutch Republic, England, and France. With its smaller population, Portugal found itself unable to effectively defend its overstretched network of trading posts, and the empire began a long and gradual decline. Eventually, Brazil became the most valuable colony of the second era of empire (1663–1825), until, as part of the wave of independence movements that swept the Americas during the early 19th century, it broke away in 1822.