The rebels suffered an unprecedented defeat, and Prince Miguel was arrested. Subsequently, John VI declared Prince Miguel an unwelcome person and ordered his expulsion from the country, leaving Miguel no choice but to slink off to Austria to cling to Metternich's coattails.
Then in 1826, while eating, John VI accidentally choked to death.
As unreliable as this cause of death may sound, being akin to the Tsar having a stroke, the pragmatic Portuguese quickly came to terms with the fact.
The King's unexpected demise also brought up a new problem: he had not clearly designated a successor before his death.
The issue of royal succession once again sparked a 'lively debate' within Portugal, with the liberals supporting the eldest son of John VI, Emperor Pedro I of Brazil, as the successor to the Portuguese throne, while the absolutists backed the younger son, Prince Miguel.