Brazil’s top electoral court has ruled that jailed former President Luiz Inácio Lula da Silva cannot run as a candidate in the presidential election because of his corruption conviction.
Judges voted against his running in October’s ballot by a majority of six votes to one in the seven-member court.
Lula, 72, was leading in polls ahead of the vote despite serving a 12-year jail term for accepting a bribe.
His legal team has said they will appeal against the court’s decision.
Brazil’s Workers’ Party (PT) later responded to the court’s decision in a statement, saying it would “fight by all means” for Lula’s candidacy.
“We will present all appeals before the courts for the recognition of the rights of Lula provided by law and international treaties ratified by Brazil,” the statement said, adding: “We will defend Lula in the streets, with the people.”
Lula’s conviction for money laundering and corruption was upheld in January. In Brazil, no one convicted of a crime upheld on appeal can run for office.
However, exceptions have been made to the law before.
In declaring Lula ineligible to stand on Friday, one judge said: “What is at stake here today is the equality of all citizens before the law and the Constitution.”
Lula was convicted of receiving a renovated beachfront apartment worth some 3.7m reais ($1.1m; £790,000) as a bribe by engineering firm OAS.
He denied wrongdoing and said his conviction was part of a plot to prevent him returning to power.
The former president is the most high-profile person convicted in the sweeping Operation Car Wash anti-corruption investigation.
Despite his jail sentence, PT voted to nominate Lula as its candidate last month.
Lula reportedly chose Fernando Haddad, former mayor of São Paulo, to run for the PT should he be prevented from doing so.