Various military corps were then sent to the former Palace of the Inquisition, (where the Teatro Nacional D. Maria II stands today), in Rossio, Lisbon, then installing its headquarters. He then gave orders to besiege the Palace of Bemposta, 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 D. John VI to take refuge in the British ship Windsor Castle, where he took a series of measures: he deposed D. 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 retained, D. Miguel was forced to embark for France in the frigate Pearl, putting an end to the uprising of miguelistas. The infante was deported from there to Vienna, and Dona Carlota Joaquina, was placed under house arrest in the Palace of Queluz.