as commander of the soldiers in Rio de Janeiro, he directed the ultimatum to Prince Pedro that he had to swear the foundations of the Constitution, dismissed the Count of Arcos and nominated a governing junta. In October he demanded again that Prince Pedro publicly announce his adherence to the decisions of the Cortes gathered in Lisbon. Prince Pedro obeyed and decided, on a first impulse, to return to Europe. But in January 1822 he publicly declared that he had decided to stay in Brazil, a fact known as Dia do Fico (Day of Stay). Jorge de Avilez resigned from the Government of Arms and, fearing an attack by Brazilian troops, he retreated to Praia Grande, in Niterói, which he fortified but was later expelled by the Prince Regent. The Portuguese Division embarked in February, arriving at Lisbon in May 1822. Liberal Wars Jorge de Avilez was elected deputy in 1822. In 1823, he was nominated by the Cortes as Commander-in-Chief of the Portuguese Army, to counter the movements of Prince Miguel. He could not prevent the coup d'état known as the Vilafrancada, which ended the first liberal period, reestablishing the absolutist regime. A prisoner in the Castle of São Jorge, he was transferred to the Tower of Belém. Judged, he was dismissed from his rank of Lieutenant-General and condemned to a year of imprisonment in Castelo de Vide. In June 1827, during the regency of the Infanta Isabel Maria of Portugal, he was exonerated and returned to his post. With the return of Prince Miguel, he asked permission to go to Portalegre, but was arrested again in June 1828 and sent to São Julião da Barra Fortress. In 1832 he was transferred to Almeida and later to Bragança, from where he managed to escape to Spain. His wife was arrested and held in the Tower of Belém, in the Limoeiro and in the Cadeia do Aljube. The diplomatic corps in Lisbon demanded his release and succeeded. King Pedro IV reconciled with Jorge de Avilez at the end of the civil war, and appointed him to Military Governor of the Court and Province of Extremadura, with the rank of Lieutenant-General. With the reorganisation of the Army he was given the command of the 1st Military Division, being later transferred to the 7th, for political reasons. Named Peer of the realm in 1835, he was given the title of Viscount of