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).
Portugal
In 1807, as Napoleon's army closed in on Lisbon, the João VI of Portugal, the Prince Regent, transferred his court to Brazil and established Rio de Janeiro as the capital of the Portuguese Empire. In 1815, Brazil was declared a Kingdom and the Kingdom of Portugal was united with it, forming a pluricontinental State, the United Kingdom of Portugal, Brazil and the Algarves.
As a result of the change in its status and the arrival of the Portuguese royal family, Brazilian administrative, civic, economical, military, educational, and scientific apparatus were expanded and highly modernized. Portuguese and their allied British troops fought against the French Invasion of Portugal and by 1815 the situation in Europe had cooled down sufficiently that João VI would have been able to return safely to Lisbon. However, the King of Portugal remained in Brazil until the Liberal Revolution of 1820, which started in Porto, demanded his return to Lisbon in 1821.