The Liberal Revolution of 1820 (Revolução Liberal) was a Portuguese political revolution that erupted in 1820. It began with a military insurrection in the city of Porto, in northern Portugal, that quickly and peacefully spread to the rest of the country. The Revolution resulted in the return in 1821 of the Portuguese Court to Portugal from Brazil, where it had fled during the Peninsular War, and initiated a constitutional period in which the 1822 Constitution was ratified and implemented. The movement's liberal ideas had an important influence on Portuguese society and political organization in the nineteenth century.
From 1807 to 1811 Napoleonic French forces invaded Portugal three times. As a result, the Portuguese royal family was transferred to the Portuguese colony of Brazil, where it remained until 1821. From Brazil, the Portuguese king João VI ruled his transcontinental empire for thirteen years.
Following the defeat of the French forces in 1814, Portugal experienced a prolonged period of political turmoil, in which many sought greater self-rule for the Portuguese people. Eventually, this unrest put an end to the King's long stay in Brazil, when his return to Portugal was demanded by the revolutionaries.
Even though the Portuguese had participated in the defeat of the French, the country found itself virtually a colony of Brazil or British protectorate. The officers of the Portuguese Army resented British control of the Portuguese armed forces. In addition the 1808 Decree of the Opening of Ports to Friendly Nations, practically brought an end to the so-called "colonial pact" (See, Mercantilism), and the Treaties of 1810, which guaranteed favored status to British products entering Portugal, decimated the commerce of cities like Porto and Lisbon and set off a deep economic crisis which affected its bourgeoisie. The city of Porto, with a strong, dynamic bourgeoisie and with liberal tradition, was the place where the Liberal Revolution began.