Jair Bolsonaro has been arrested after authorities determined he posed a definite escape threat while under house arrest.
The former head of state was sentenced of plotting a armed takeover in September and handed more than over two decades in jail, but he remained under confinement pending court reviews.
Brazilian Supreme Court Justice Justice Moraes said the move to detain the elderly politician was a precautionary step after fresh information came to light.
This included seeking to disable his tracking device and a summons to a public vigil that could enable a possible escape.
In a document approving the detention, the magistrate said information from the unit overseeing his home detention suggested the ex-president's aim to disable the electronic ankle bracelet to secure accomplishment in his flight.
This, it said, would be "facilitated by the disorder caused by the demonstration called by his son.
His offspring, Flávio Bolsonaro, who holds office as a congressional representative, called for a meeting of his backers near the former president's residence to take place on Saturday evening.
The senator wrote on digital networks on Friday: "Are you going to fight for your country, or watch it all from your smartphone there on your sofa? I invite you to battle with us."
He said the demonstration would be so followers could "pray for his well-being and for the reestablishment of democratic governance in our country."
Part of the judge's decision was the chance of the former president's "relocation to embassies near the dwelling, considering that the inquiries revealed a history of arranging to seek refuge through a consular facility", a announcement said.
The court filing highlights that the United States embassy in the federal district, Brazil's capital, is positioned around 8 miles from his dwelling.
The former president's legal troubles have drawn the ire of fellow conservative nationalist US President Trump, leading him to impose a half-rate duty on imports of Brazilian goods.
The former president is being held in a Federal Police station in Brasilia and will undergo a imprisonment assessment on the following day.
It was only on Friday that the former president's lawyers asked the Supreme Court to authorize him to complete his entire prison term under home confinement, with digital surveillance.
They also petitioned that he be allowed to leave his home for medical treatment, saying he demanded frequent medical attention for lung conditions and other illnesses.
The former president was convicted of leading a conspiracy aimed at maintaining his control after he lost the presidential race to his political opponent, Luiz Inácio Lula da Silva.
Top judicial officials said that he knew of a plan which encompassed plans to kill the current president and his running partner, Alckmin, and to imprison and murder the presiding judge - the Supreme Court justice who has been managing the former president's case.
The conspiracy was stopped because it couldn't obtain the support of the military leaders. The current president was sworn in without incident on the first day of 2023.
But a following week, on the eighth of January, many his backers stormed and vandalised official structures in the federal district, Brazil's capital.
The law enforcement took action and around fifteen hundred individuals were detained.
The justices found that the protesters had been encouraged by Bolsonaro whose strategy, they said, was for the Brazilian military to step in, bring back stability and return him to office.
At the moment, the legal team called the 27 years and three months sentence "absurdly excessive.
He was also banned from campaigning for office until 2060 - a decade minus two years after the end of his sentence.
The one-time head of state called the court case a "witch hunt and said it was designed to prevent him running in the next presidential race.