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
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.