Transfer of the Portuguese Court to Brazil: John VI of Portugal flees Lisbon from advancing Napoleonic forces during the Peninsular War, transferring the Portuguese court to Brazil.

The Portuguese royal court transferred from Lisbon to the Portuguese colony of Brazil in a strategic retreat of Queen Maria I of Portugal, Prince Regent John, the Braganza royal family and its court of nearly 420 people on 27 November 1807. The embarkment took place on the 27th, but due to weather conditions, the ships were only able to depart on the 29 November. The Braganza royal family departed for Brazil just days before Napoleonic forces invaded Lisbon on 1 December. The Portuguese crown remained in Brazil from 1808 until the Liberal Revolution of 1820 led to the return of John VI of Portugal on 26 April 1821.: 321 For thirteen years, Rio de Janeiro, Brazil, functioned as the capital of the Kingdom of Portugal in what some historians call a metropolitan reversal (i.e., a colony exercising governance over the entirety of an empire). The period in which the court was located in Rio brought significant changes to the city and its residents, and can be interpreted through several perspectives. It had profound impacts on Brazilian society, economics, infrastructure, and politics. The transfer of the king and the royal court "represented the first step toward Brazilian independence, since the king immediately opened the ports of Brazil to foreign shipping and turned the colonial capital into the seat of government."