Various military corps were then sent to the former Palace of the Inquisition, (where the D. Maria II National Theatre stands today), in Rossio, Lisbon, then installing its headquarters. He then gave orders to besiege the Bemposta Palace, where the King was accompanied by his English adviser, General William Carr Beresford.
The support of John by the diplomatic corps in Portugal was decisive to solve this conflict, in particular the action of the French ambassador Hyde de Neuville. In an attempt at appeasement, one diplomat managed to enter the palace and convince the King to call his son. He achieved, thereby, an agreement that brought back the troops to barracks, but that the detainees remain imprisoned, with the exception of Palmela, who took refuge in a British ship, continuing the political and military instability.
In May, diplomats helped King John VI to take refuge on the British ship Windsor Castle, where he took a series of measures: he deposed Prince Miguel from his position as head of the Army, ordered the release of political prisoners and the capture of the supporters of his son, who was summoned to come aboard. Once detained, D. Miguel was forced to embark for France in the frigate Pearl, putting an end to the uprising of Miguelists. The Infante was deported from there to Vienna, and Queen Carlota Joaquina, was placed under house arrest in the Palace of Queluz.