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.
Flag of Portugal
Despite the end of the United Kingdom of Portugal, Brazil and the Algarves, when Brazil became independent in 1822, its coat of arms continued to be used, inclusive in flags, until the death of John VI in 1826. From then on, the previous coat of arms, without the armillary sphere, became in use again.