Former Brazilian President Luiz Inácio Lula da Silva has pulled out of next month’s presidential election, allowing his running mate to stand in his place.
Workers’ Party leader Gleisi Hoffman announced the decision outside the police headquarters where the 72-year-old is serving a 12-year sentence.
Brazil’s top electoral court barred Lula’s candidacy less than two weeks ago due to his corruption conviction.
The move comes days after a far-right candidate was stabbed at a rally.
The 63-year old Jair Bolsonaro must now undergo major surgery after being attacked by a lone assailant, doctors said.
A letter written by Lula in his prison cell was read out to his supporters who have been camping outside the jail for five months demanding he be freed.
In it, the former president, who governed from January 2003 until December 2010, said he would not run in the election scheduled for 7 October.
He also named Fernando Haddad as the man to step into the breach.
The decision comes after a lengthy legal battle which culminated on 31 August when the Superior Electoral Court (TSE) ruled that he was “ineligible” to run for the presidency.
Lula’s legal team and the Workers’ Party have appealed against the decision and the Supreme Court is still due to rule on it.