When Rio de Janeiro ruled Portugal
For thirteen years, from 1808 to 1821, the capital of the Portuguese empire was not Lisbon but Rio de Janeiro. The royal family fled across the Atlantic ahead of Napoleon’s army, ran Portugal from its own colony, and made Brazil a kingdom equal to Portugal.
Written from cited sourcesLast checked 13 October 2026Suggest a correction
- Lisbonuntil 1807
- Rio de Janeiro1808–1821
- Lisbonfrom 1821
The colony’s capital
Portuguese navigators reached Guanabara Bay on 1 January 1502 and took its entrance for the mouth of a river, which is how Rio de Janeiro, “January River”, got its name. The town itself was founded in 1565.[6]
Rio became Brazil’s capital in 1763, taking over from Bahia, after gold was found in Minas Gerais: power followed wealth south. Gold and diamonds from the mines passed through Rio on their way to Lisbon.[7]
Fleeing Napoleon
The idea of moving the crown to Brazil was old. In 1738 a Portuguese diplomat, Dom Luís da Cunha, called Rio de Janeiro “safer and more convenient”, and in 1801 Britain recommended a move to Brazil if Portugal were invaded. Queen Maria I was mentally ill, so her son Dom João ruled as regent. He did not move until the French army was actually entering Portugal in late 1807.[3]
On 29 November 1807 the royal family and representatives of the state’s main institutions left Lisbon in a fleet that included British ships. They reached Rio de Janeiro on 7 March 1808, and from then on the court governed from Brazil.[1] Britain had saved the royal family and some 15,000 courtiers, and in 1809 lent the government US$3 million to keep it running.[3]
An empire run from Rio
Dom João opened Brazil’s ports to world trade, and Rio took Lisbon’s place at the centre of the empire. The crown rebuilt in Rio, mostly from scratch, the government it had left behind: a military council, treasury and trade boards, a court of appeals, a royal press and newspaper, the Bank of Brazil, medical schools, a public library and the Botanical Garden.[3]
The city changed with it. Foreign ships anchoring in the bay rose from 90 in 1808 to 354 in 1820, by when Rio had 113,000 people, more than 3,000 of them foreigners. Not every region welcomed rule from Rio: in 1817 Pernambuco rose in a republican revolt against it, which was crushed.[2]
A kingdom, not a colony
After Napoleon’s defeat the European powers met at the Congress of Vienna, and the crown could no longer easily explain living in a colony. Agência Brasil reports that the solution came from France’s envoy, Talleyrand: make the colony a kingdom equal to Portugal.[5]
A law of 16 December 1815 raised Brazil to the rank of a kingdom and joined it with Portugal and the Algarves as the United Kingdom of Portugal, Brazil and the Algarves.[4] When Maria I died in 1816, Dom João was acclaimed king, as João VI.[3]
The court goes home
In 1820 a military revolt in Portugal set up revolutionary juntas and called a parliament, the Cortes, which wanted the king back. In February 1821 troops in Rio forced João VI to swear to accept whatever constitution the Cortes wrote. On 25 April 1821 twelve ships carried the king, the queen and 4,000 officials and their families back to Lisbon, leaving his son Pedro as regent.[2]
When the Cortes ordered Pedro home too, he declared Brazil independent on 7 September 1822 and was crowned emperor within three months.[8] Rio de Janeiro stayed the capital, now of an independent Brazil, until 1960.[6]
Timeline
1565
Rio founded
The town of São Sebastião do Rio de Janeiro is founded.[6]
1763
Colonial capital
Rio takes over from Bahia as Brazil’s capital.[7]
180729 November 1807
The fleet sails
The royal family leaves Lisbon as French troops invade.[1]
18087 March 1808
The court lands in Rio
The prince regent, the royal family and the state’s institutions land in Rio.[1]
181516 December 1815
Kingdom of Brazil
Brazil is raised to a kingdom, united with Portugal and the Algarves.[4]
1816
João VI
Maria I dies and Dom João is acclaimed king.[3]
1817
Pernambuco revolt
A republican revolt against rule from Rio is crushed.[2]
1821
The king sails home
João VI returns to Lisbon, leaving Pedro as regent.[2]
18227 September 1822
Independence
Pedro declares Brazil independent, with Rio as its capital.[8][6]
More capitals
- Bern, Switzerland’s “federal city”
- Manila and Quezon City
- Nanjing and Beijing, the southern and northern capitals
- Ngerulmud, Palau’s capitol on a hill
- Tokyo, the capital no law names
- Why Ankara replaced Istanbul
- Why Australia built Canberra
- Why Belize built Belmopan
- Why Bolivia has two capitals
- Why Brazil built Brasília
- Why Burundi moved its capital to Gitega
- Why Canada’s capital is Ottawa
- Why Côte d’Ivoire’s capital is Yamoussoukro
- Why Egypt built a new capital
- Why Germany’s capital moved from Bonn to Berlin
- Why India’s capital moved to New Delhi
- Why Indonesia is building Nusantara
- Why Kazakhstan moved its capital to Astana
- Why Madrid became Spain’s capital
- Why Malawi moved its capital to Lilongwe
- Why Malaysia built Putrajaya
- Why Myanmar built Naypyidaw
- Why Nigeria moved its capital to Abuja
- Why Pakistan built Islamabad
- Why Russia’s capital moved back to Moscow
- Why South Africa has three capitals
- Why South Korea built Sejong
- Why Sri Lanka’s Parliament sits in Kotte, not Colombo
- Why Tanzania’s capital is Dodoma
- Why the Netherlands is governed from The Hague
- Why the United States built Washington
Sources
- [1]7 de março de 1808 – Chegada da Família Real ao Brasil · Museu de Marinha (Portuguese Navy)
- [2]Brazil: The Kingdom of Portugal and Brazil, 1815–21 · Library of Congress, Country Studies (via countrystudies.us) · 1997
- [3]Brazil: The Transition to Kingdom Status · Library of Congress, Country Studies (via countrystudies.us) · 1997
- [4]Carta de Lei de 16 de Dezembro de 1815 (original text) · Câmara dos Deputados, Legislação Informatizada · 16 December 1815
- [5]Há 200 anos, Brasil deixava de ser colônia portuguesa · Agência Brasil · 16 December 2015
- [6]Rio de Janeiro · Encyclopaedia Britannica
- [7]Brazil: Gold Mining Displaces Cane Farming · Library of Congress, Country Studies (via countrystudies.us) · 1997
- [8]Pedro I · Encyclopaedia Britannica
Map geometry from Natural Earth via world-atlas. See credits.