Former Brazilian president Luiz Inacio Lula da Silva has emerged from prison after a federal judge ordered his release following a landmark Supreme Court decision.
Wearing a black shirt and suit coat, a smiling Lula lifted his hand into the air and entered a swarm of cheering supporters, several wearing shirts emblazoned with his likeness and waving red flags representing leftist social movements.
A Brazilian judge ordered the release of the former president from prison on Friday, startling financial markets and spurring both supporters and critics of the leftist icon to call for demonstrations in coming days.
The federal judge's order followed a Supreme Court ruling late on Thursday ending the mandatory imprisonment of convicted criminals after they lose their first appeal.
The politically charged ruling is expected to free scores of high-profile convicts in the so-called Car Wash investigation of public corruption, including Lula, who was behind bars for a bribery conviction.
Brazil's currency and benchmark Bovespa stock index fell nearly 2 per cent on Friday, deepening losses in late afternoon trading after the judge's ruling to release the former president.
Lula was imprisoned in 2018 for eight years and 10 months after being found guilty of taking bribes from engineering firms in return for public contracts. He has maintained his innocence and said the case against him was politically motivated.
While Lula has fought to overturn the sentence, many urged the Supreme Court to overturn a prior ruling that convicts, including the former president, must do prison time before exhausting their appeals.
On Thursday, the top court voted 6-5 that the precedent was in fact unconstitutional.
Following the Supreme Court decision, Lula's lawyer, Cristiano Zanin, was quick to request his release from a cell in federal police headquarters in the southern city of Curitiba.
Lula and his supporters have also criticised the fact that Sergio Moro, a former federal judge who oversaw the Car Wash probe and convicted Lula, accepted an invitation to become the justice minister of far-right President Jair Bolsonaro, a longtime foe of Lula and key rival in last year's election.
Moro said in a statement earlier on Friday that the top court's decision must be respected, and lawmakers can now change the constitution to make prison time mandatory after a first failed appeal.