Brazil's top court delivered a ruling Thursday that could lead to former President Luiz Inacio Lula da Silva being released from jail along with nearly 5,000 other prisoners.

The Supreme Court decided in a 6-5 vote that a person can only be imprisoned once all appeals to higher courts have been exhausted.

The Brazilian Bar Association argued that the mandatory prison rule violated the constitution by not respecting the presumption of innocence throughout the appeals process.

The judgement looks set to benefit Lula, as the former president is known, and others top politicians and business leaders who were caught up in the extensive "Car Wash" corruption investigation and who are still appealing.

Setting a new precedent

The ruling set a new precedent for Brazil's top court, which in February 2016 accepted that defendants whose convictions are upheld may be jailed even if their other appeals are pending.

Lula's lawyers said they would seek his immediate release by the lower court that convicted him.

Read more: Brazil prosecution of Lula could be compromised, Intercept leaks show

Watch video 01:52 Share Ex-President Lula behind bars Send Facebook google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink https://p.dw.com/p/2vfyq Former Brazil President Lula begins jail sentence

However, prosecutors from the Car Wash investigation said the ruling "goes against the sentiment of repudiating impunity and the fight against corruption" and would make their job more difficult.

Da Silva was jailed in April 2018 for corruption and money laundering. He has denied any wrongdoing, accusing prosecutors of political persecution and of preventing him from returning to office.

He governed Brazil as leader of the leftist Workers Party from 2003-2010.

Watch video 02:51 Share Brazil's Lula bows out of race Send Facebook google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink https://p.dw.com/p/34iRY Lula quits race, but will voters support his successor?

Read more: Brazil's top court prevents investigation into US journalist Glenn Greenwald

kmm/rt (Reuters/AP)

Every evening, DW sends out a selection of the day's news and features. Sign up here.