Former Brazilian President Luiz Inacio Lula da Silva has defied an order to turn himself in to police as he hunkered down with supporters at a metallurgical union that was the spiritual birthplace of his rise to power.
The once wildly-popular leader, who rose from poverty to lead Latin America's largest nation, had until 5pm local time to present himself to police in the city of Curitiba to begin serving a sentence of 12 years and one month for a corruption conviction.
At 5pm, however, da Silva remained inside the union with party leaders saying he planned to address supporters.
Federal judge Sergio Moro, seen by many in Brazil as a crusader against endemic graft, issued an order for da Silva's arrest on Thursday so he would begin serving a sentence of 12 years and one month for a corruption conviction.
Three hours before the deadline, it remained to be seen whether da Silva would comply, or instead wait for authorities to pick him up.
The latter would be a logistical nightmare given the thousands of supporters outside and heavy Friday traffic in Sao Paulo, South America's largest city.
Two sources close to da Silva told The Associated Press the former leader would not to go to Curitiba, but instead was considering either waiting for police at the union or presenting himself in Sao Paulo.
"I don't see why he should turn himself in just because judge Moro had an anxiety crisis," Senator Lindbergh Farias, from the Workers' Party, told journalists at the union.
He added: "I think they should have to go through the embarrassment of coming here and taking him in front of all these people.
"That footage will be seen around the world and it will be historic."
Judge Moro's warrant came after Brazil's top court, the Supreme Federal Tribunal, voted 6-5 to deny a request by the former president to stay out of prison while he appealed a conviction he contends was simply a way to keep him off the ballot in October's election.
The 72-year-old is the front-running presidential candidate despite his conviction.
In a statement, Mr Moro said he was giving da Silva the opportunity to come in of his own accord because he had been Brazil's president.
He also said a special cell away from other inmates had been prepared for da Silva at the jail in Curitiba, where Mr Moro ordered da Silva to present himself.
Last year, he convicted da Silva of trading favors with a construction company in exchange for the promise of a beachfront apartment. That conviction was upheld by an appeals court in January.
The speed with which Mr Moro issued the warrant surprised many, as legal observers said there were technicalities from da Silva's upheld appeal that would not be sorted out until next week.
Such technicalities "were simply a pathology that should be eliminated from the judicial world", Mr Moro said in his statement.
Late on Thursday, thousands gathered outside the metallurgical union in Sao Bernardo do Campo where the ex-president, universally known as "Lula", got his start as a union organiser.
Hundreds spent the night sleeping on the street and early on Friday, da Silva waved to supporters from a window at the union but did not speak.
"Why are they in a rush to arrest him?" said former President Dilma Rousseff, who succeeded da Silva and in 2016 was impeached and ousted from office.
However it happens, the jailing of da Silva will mark a colossal fall from grace for a man who rose to power against steep odds in one of the world's most unequal countries.
Born in the hardscrabble northeast, da Silva rose through the ranks of the union in the country's industrial south.
In 1980, during the military dictatorship, da Silva was arrested in Sao Bernardo do Campo for organising strikes. He would spend more than a month in jail.
After running for president several times, in 2002 da Silva finally won. He governed from 2003 to 2010, leaving office a world celebrity and with approval ratings in the high 80s.
Former US president Barack Obama once called da Silva the "most popular politician on Earth".
Since leaving office, things have steadily gotten worse for the leader, who has been charged in several corruption cases.
He has always maintained his innocence while continuing to campaign across the country the past year.
Despite his legal troubles, he leads preference polls to return to office - if by some chance he is allowed to run.
Like so much in a nation that has become deeply polarised, the fact da Silva would soon be behind bars was being interpreted differently by supporters and detractors.
"Brazil scored a goal against impunity and corruption," said Congressman Jair Bolsonaro, a right-leaning former army captain who is second in the polls after da Silva.
"Lula is one of us. He knows what it is like to have a tough life and loves the poor more than the rich," said Antonio Ferreira dos Santos, a 43-year-old bricklayer who was keeping vigil outside the union.
Workers' Party leaders insist da Silva would still be the party's candidate in October.
Technically, beginning to serve his sentence would not keep da Silva off the ballot.
In August, the country's top electoral court makes final decisions about candidacies. It was expected to deny da Silva's candidacy under Brazil's "clean slate" law, which disqualifies people who have had criminal convictions upheld.
However, da Silva could appeal such a decision, though doing so from jail would be more complicated.
Da Silva is the latest of many high-profile people to be ensnared in possibly the largest corruption scandal in Latin American history.
Over the last four years, Brazilians have experienced near weekly police operations and arrests of the elite, from top politicians to businessmen like former Odebrecht CEO Marcelo Odebrecht.
Investigators uncovered a major scheme in which construction companies essentially formed a cartel that doled out inflated contracts from state oil company Petrobras, paying billions in kickbacks to politicians and businessmen.
While Mr Moro, who oversees many cases in the so-called "Operation Car Wash", is hailed as a hero by many, others see him as a partisan hit man out to get da Silva and the Workers' Party.
Da Silva was convicted in July of helping a construction company get sweetheart contracts in exchange for the promise of the apartment.
He denies any wrongdoing in that case or in several other corruption cases that have yet to be tried.
An appeals court upheld the conviction in January and even lengthened the sentence to 12 years and one month.
- Press Association and Digital Desk