Brazil's former president Jair Bolsonaro is greeted by supporters after landing at the airport in Porto Alegre, Brazil, on June 22, 2023. (PHOTO / AP)

BRASILIA – Former Brazilian president Jair Bolsonaro's future in office hung in the balance on Thursday, as the country's federal electoral court (TSE) began a trial that could leave him in the political wilderness for nearly a decade.

Bolsonaro, a far-right nationalist who in October narrowly lost Brazil's most fraught election in a generation, stands accused of abusing his presidential power last year when he summoned foreign diplomats to publicly vent unfounded attacks on the country's electronic voting system.

Bolsonaro's accusers have also included in the charges against him a draft memo for how to overturn the election, found at the house of his former justice minister.

Former Brazilian president Jair Bolsonaro, a far-right nationalist who in October narrowly lost Brazil's most fraught election in a generation, stands accused of abusing his presidential power last year when he summoned foreign diplomats to publicly vent unfounded attacks on the country's electronic voting system

The outlook appears bleak for Bolsonaro, a career politician who was until recently Brazil's most powerful man.

He still retains significant backing from his core supporters, but many in Brazil have tired of his scorched-earth politics that culminated in the storming of government buildings in Brasilia on Jan. 8 by thousands of his supporters.

Luiz Inacio Lula da Silva, Bolsonaro's fierce leftist rival who won last year's election, is meanwhile starting to reap the benefits of an improving economy.

ALSO READ: Brazil's Bolsonaro denies tampering of his vaccination records

Tarcisio Vieira, Bolsonaro's lawyer, told Reuters this week that his polarizing client faces an "unfavorable" climate from the country's media and the political and judicial classes.

On Thursday, Vieira told the court that if Bolsonaro misspoke during the meeting with ambassadors, he should be fined rather than losing his right to stand in elections.

President of the Supreme Electoral Court, Minister Alexandre de Moraes (top center) presides over the start of the trial of former president Jair Bolsonaro at the Supreme Court in Brasilia, Brazil, on June 22, 2023. (PHOTO / AP)

In an opening speech, Vieira said the case against Bolsonaro was "doomed to failure." The purported link with the Jan. 8 riots was "inventive and fallacious," he added.

Speaking at an event in the southern city of Porto Alegre, Bolsonaro complained he was getting unfair treatment compared with Luiz Inacio Lula da Silva, and said the "unbelievable" case against him was a politically-motivated hit job

The hearing was then adjourned until Tuesday. A final ruling is expected by next Thursday.

Speaking at an event in the southern city of Porto Alegre, Bolsonaro complained he was getting unfair treatment compared with Lula, and said the "unbelievable" case against him was a politically-motivated hit job.

If the TSE rules against Bolsonaro, the 68-year-old could find himself unable to run for public office until 2030. That may not be the end of his troubles, though, as he also faces multiple criminal investigations that could put him behind bars.

Much of Brazil appears eager to move on from the fire and brimstone of the Bolsonaro years.

READ MORE: Bolsonaro's home raided and aides arrested in Brazil vaccine probe

Some of his former conservative allies are now publicly pinning their hopes on new right-wingers – such as Sao Paulo Governor Tarcisio Freitas and Minas Gerais Governor Romeu Zema – while others in the Bolsonaro clan, including his wife and lawmaker sons, may also harbor their own presidential ambitions.