Brazil's former President Luiz Inácio Lula da Silva has been freed from jail.
A judge ordered the release of Lula after the Supreme Court ruled that convicted criminals should go to prison only if they have exhausted their appeal options.
He was mobbed by supporters outside a prison in the city of Curitiba where he has been held for a year and a half on corruption charges.
The left-winger led Brazil between 2003 and 2010 and remains popular.
"I didn't think that today I could be here talking to men and women that during 580 days shouted good morning, good afternoon or goodnight, no matter if it was raining or 40 degrees (Celsius)," Lula told the crowds.
He vowed to establish his innocence and criticised what he called the "rotten side of the judicial system" for "working to criminalise the left".
He was favourite to win last year's presidential election but was imprisoned after being implicated in a major corruption scandal. The race was won instead by far-right candidate Jair Bolsonaro.
Lula will be barred from standing for office because of his criminal record.
He has consistently denied all the accusations against him and claims they are politically motivated.
How did the release come about?
Justices voted to reinterpret the country's penal code in a decision issued on Thursday.
It overturns a three-year-old rule which mandated immediate prison time for convicted criminals after they lost their first appeal.
Latest Stories
-
World Bank’s food price index eases; maize, wheat prices hit 3-year low
16 mins -
2020 polls all about pulling Ghana back from precipice of destruction, corruption – Naana Jane
19 mins -
Guru expresses interest in contesting SRC election at UG
26 mins -
Oil prices projected to average $84 in 2024 – World Bank
36 mins -
Meet 2 Ghanaian entrepreneurs on a mission to connect 1m African professionals to global companies by 2034
1 hour -
NCA approves Starlink’s satellite broadband application
1 hour -
Government orders FGR to revamp mining operations; assures workers of commitment to their welfare
1 hour -
Arne Slot philosophy could suit Liverpool – Van Dijk
1 hour -
EC replies Mahama: You also appointed someone who was tagged NDC
2 hours -
See colourful outdoor of Prof Naana Opoku-Agyemang as NDC’s running mate
2 hours -
Akufo-Addo commissions 15MWP Kaleo Solar Power Plant
2 hours -
GCB Bank PLC leads African financial integration, hosts ZICB delegation
2 hours -
Empowering Girls in ICT: FAWE Ghana advocates for gender equality in the Tech sector
4 hours -
Rangnick ‘contacted by Bayern Munich’ about manager job
4 hours -
Winneba Youth Choir celebrates 35th Anniversary with Aseda Concert sponsored by Fidelity Bank
4 hours