With the end of the Peninsular War in 1814, the courts of Europe demanded that Queen Maria I and Prince Regent João return to Portugal, deeming it unfit for the head of an ancient European monarchy to reside in a colony. In 1815, in order to justify continuing to live in Brazil, where the royal court had thrived for the past six years, the Crown established the United Kingdom of Portugal, Brazil, and the Algarves, thus creating a pluricontinental transatlantic monarchic state.[70] However, such a ploy didn't last long, since the leadership in Portugal resentful with the new status of its larger colony, continued to require the return of court to Lisbon (as postulated by the Liberal Revolution of 1820), as well as groups of Brazilians, impatient for practical and real changes still demanded independence and a republic, as showed by the 1817 Pernambucan Revolt.[70] In 1821, as a demand of revolutionaries who had taken the city of Porto,[71] D. João VI was unable to hold out any longer, and departed for Lisbon. There he swore oath to the new constitution, leaving his son, Prince Pedro de Alcântara, as Regent of the Kingdom of Brazil.[72]