Geographys

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

  1. Lisbonuntil 1807
  2. Rio de Janeiro1808–1821
  3. 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

  1. 1565

    Rio founded

    The town of São Sebastião do Rio de Janeiro is founded.[6]

  2. 1763

    Colonial capital

    Rio takes over from Bahia as Brazil’s capital.[7]

  3. 180729 November 1807

    The fleet sails

    The royal family leaves Lisbon as French troops invade.[1]

  4. 18087 March 1808

    The court lands in Rio

    The prince regent, the royal family and the state’s institutions land in Rio.[1]

  5. 181516 December 1815

    Kingdom of Brazil

    Brazil is raised to a kingdom, united with Portugal and the Algarves.[4]

  6. 1816

    João VI

    Maria I dies and Dom João is acclaimed king.[3]

  7. 1817

    Pernambuco revolt

    A republican revolt against rule from Rio is crushed.[2]

  8. 1821

    The king sails home

    João VI returns to Lisbon, leaving Pedro as regent.[2]

  9. 18227 September 1822

    Independence

    Pedro declares Brazil independent, with Rio as its capital.[8][6]

More capitals

Sources

  1. [1]
  2. [2]
    Brazil: The Kingdom of Portugal and Brazil, 1815–21 · Library of Congress, Country Studies (via countrystudies.us) · 1997
  3. [3]
    Brazil: The Transition to Kingdom Status · Library of Congress, Country Studies (via countrystudies.us) · 1997
  4. [4]
    Carta de Lei de 16 de Dezembro de 1815 (original text) · Câmara dos Deputados, Legislação Informatizada · 16 December 1815
  5. [5]
    Há 200 anos, Brasil deixava de ser colônia portuguesa · Agência Brasil · 16 December 2015
  6. [6]
    Rio de Janeiro · Encyclopaedia Britannica
  7. [7]
    Brazil: Gold Mining Displaces Cane Farming · Library of Congress, Country Studies (via countrystudies.us) · 1997
  8. [8]
    Pedro I · Encyclopaedia Britannica

Map geometry from Natural Earth via world-atlas. See credits.

Know a better source? Send a link for any fact on this page.
Primary sources (treaties, court rulings, official records) help most.