Meanwhile, the situation in Portugal was by no means tranquil. Absent its monarch and devastated by the Peninsular War and the consequent mass hunger and enormous exodus of emigrants, the country became a "de facto" British protectorate upon the final expulsion of the French. It was administered by William Carr Beresford, who took a high hand in his dealings with the Portuguese government. From the time John ascended the throne, the Portuguese pressed for his return, initiated liberal rebellions, and formed secret societies with the objective of bringing into session the Portuguese Cortes, which had not met since 1698. Similar liberal agitation occurred in Brazil. In 1817, the Pernambucan Revolt broke out in Recife, a republican movement that established a provisional government in Pernambuco and spread into other Brazilian states; it was put down severely. Back in Portugal, the Liberal Revolution of 1820 broke out in Porto on 24 August 1820. A governing junta was set up, with repercussions in Lisbon. It met as the General Extraordinary and Constituent Cortes ("Cortes Gerais Extraordinárias e Constituintes"), formed a government and convened elections for deputies without bothering to consult King John. The movement gained support from the Island of Madeira, the Azores and reached the captaincy of Grão-Pará and Bahia in Brazil. It led even to an uprising by the military garrison of Rio de Janeiro itself.