Jair Bolsonaro has been taken into custody after authorities determined he posed a definite escape threat while under house arrest.
The ex-president was sentenced of plotting a government overthrow in the ninth month and given more than a 27-year term in prison, but he continued under house arrest pending appeals.
High Court Judge Justice Moraes said the action to imprison the 70-year-old politician was a precautionary step after "new facts" emerged.
This included attempting to break his electronic bracelet and a summons to a public vigil that could enable a chance to flee".
In a filing authorising the detention, Justice Moraes said intelligence from the unit overseeing Bolsonaro's house arrest suggested the ex-president's plan to remove the surveillance device to ensure success in his getaway".
This, it said, would be made easier by the disorder caused by the protest called by his offspring.
His son, Flávio Bolsonaro, who serves as a congressional representative, called for a gathering of his backers near Bolsonaro's home to take place on the weekend.
His son wrote on digital networks on last Friday: Do you plan to struggle for your country, or see it all from your phone there on your couch? I call on you to struggle with us."
He said the demonstration would be so followers could "pray for his physical condition and for the restoration of democratic rule in our land."
Part of the judge's ruling was the chance of his move to diplomatic missions near the dwelling, considering that the investigations revealed a background of organizing to ask for protection through a consular facility", a declaration said.
The legal document emphasizes that the American diplomatic mission in the national capital, Brazil's capital, is positioned around approximately 13 kilometers from Bolsonaro's home.
Bolsonaro's legal woes have drawn the ire of fellow right-wing populist United States President Trump, causing him to enact a fifty percent tax on Brazilian product imports.
The former president is being detained in a national police facility in Brazil's capital city and will experience a detention review on Sunday.
It was only on last Friday that the ex-leader's attorneys asked the Top Court to authorize him to complete his entire prison term under house arrest, with electronic monitoring.
They also asked that Bolsonaro be allowed to depart his residence for medical treatment, saying he demanded ongoing care for lung conditions and other ailments.
He was found guilty of orchestrating a plot aimed at maintaining his control after he lost the 2022 election to his political opponent, President Lula.
High Court judges said that he was aware of a plot which involved plans to assassinate his opponent and his running partner, Geraldo Alckmin, and to detain and kill Justice Moraes - the Supreme Court justice who has been managing Bolsonaro's trial.
The scheme was prevented because it failed to get the endorsement of the military leaders. Lula was took office without incident on 1 January 2023.
But a following week, on the eighth of January, numerous Bolsonaro supporters invaded and destroyed public facilities in the capital, the capital city.
The police stepped in and around 1,500 people were taken into custody.
The magistrates found that the rioters had been encouraged by the former president whose strategy, they said, was for the Brazilian military to take action, reestablish control and return him to office.
At the period, his attorneys called the 27 years and three months sentence unreasonably severe".
He was also barred from running for public office until the year 2060 - eight years after the end of his sentence.
The ex-leader called the legal proceedings a targeted investigation" and said it was designed to prevent him competing in the 2026 presidential election.