The constitution was the result of the work of the Constituent Cortes of 1820, convened after the Liberal Revolution. The Cortes began its work in January 1821 and concluded after king João VI of Portugal swore allegiance to it in October 1822.