 In 1820 the Constitutionalist Revolution erupted in Portugal.The movement initiated by the liberal constitutionalists resulted in the meeting of the "Cortes" (or Constituent Assembly), that would have to create the kingdom's first constitution.The "Cortes" at the same time demanded the return of King Dom John VI, who had been living in Brazil since 1808, who elevated Brazil to a kingdom as part of the United Kingdom of Portugal, Brazil and the Algarves in 1815 and who nominated his son and heir prince Dom Pedro as regent, to govern Brazil in his place on 7 March 1821.