BRASILIA, Brazil (AP) — Brazil is days from a presidential election featuring two political titans and bitter rivals that could usher in another four years of far-right politics or return a leftist to the nation’s top job.

On one side is incumbent Jair Bolsonaro, a former army captain who built a base of hardcore support as a culture warrior with a conservative ideology. He has deployed government funds in what is widely seen as an effort to drum up last-minute votes. His adversary, former President Luiz Inácio Lula da Silva, has sought to kindle nostalgia for his years presiding over an economic boom and social inclusion.

Here’s what you need to know about the Brazilian presidential runoff, which is on Oct. 30.

HOW OFTEN ARE ELECTIONS IN BRAZIL?

Brazil holds general elections once every four years, choosing state and federal representatives as well as the president, governors and some senators. Mayors, city councilors and remaining senators are also chosen every four years, but on different years.

HOW MANY TIMES CAN A PERSON BE ELECTED PRESIDENT IN BRAZIL?

There is no limit to the number of times one can be elected president in Brazil, but the person can only serve two consecutive terms. That is why da Silva, who was president from 2003 to 2010, can run this year.

WASN’T THERE ALREADY A BRAZILIAN ELECTION?

Brazil held its first round of voting on Oct. 2, electing lawmakers at state and federal levels. Gubernatorial candidates garnering more than 50% of valid votes, which exclude blank and spoiled ballots, were also confirmed.

None of the 11 presidential candidates got an outright majority, setting up a runoff between da Silva, who had 48% of votes, and Bolsonaro with 43%. Polls had significantly understated the support for the president and his allies, prompting backlash.

WHAT HAPPENS IN THE OCT. 30 ELECTION?

It’s a runoff for the presidency and for governorships in states where no candidate won a first-round majority. Most polls 2 1/2 weeks after the first round show da Silva retaining a slight lead over Bolsonaro.

WHAT ARE BOLSONARO’S POLICIES?

During the campaign, Bolsonaro has often repeated his guiding principles: “God, Family, Country.” He portrays Brazil as spiritually ill and presents himself as a Christian soldier standing guard against cultural Marxism. He has loosened restrictions on the purchase of guns and ammunition and weakened oversight of environmental crime in the Amazon rainforest, which critics say caused the biome’s worst deforestation in 15 years and a surge of man-made fires.

He stresses his opposition to legalized abortion and drugs, while warning that da Silva’s return would produce the sort of leftist authoritarianism seen elsewhere in Latin America, persecution of churches, sexual education in public schools and the proliferation of so-called gender ideology.

Recently, Bolsonaro has given government funds to poorer Brazilians, who traditionally have been inclined to vote for da Silva’s Worker’s Party. The Brazil Aid welfare program created during the COVID-19 pandemic was generous relative to other nations and a lifeline for many Brazilians. Recently, it was beefed up and extended through yearend, and Bolsonaro has said it will continue into 2023.

Other measures include a subsidy for cooking gas, assistance for truck and taxi drivers and refinancing of debts.

WHAT ABOUT DA SILVA?

Da Silva, known universally as Lula, has focused on his prior terms, during which commodities exports surged and tens of millions of Brazilians joined the middle class. He has promised the poor — battered by economic distress for the better part of a decade — that they will again be able to afford three square meals a day and even weekend barbecues.

But he has been vague on how he would ensure return of those halcyon days. Like Bolsonaro, he promises to extend Brazil Aid welfare into 2023, without explaining how it will be financed. He has said the state will once again assume a prominent role in economic development.

Faced with Bolsonaro’s attempts to lump him in with leaders of Cuba and Venezuela, da Silva has declined to denounce their autocratic practices, instead saying other nations’ sovereignties must be respected, while also highlighting the fact he implemented no such policies during his presidency. In April, he said women should have the right to an abortion and then backtracked amid outcry, saying he is personally opposed.

A corruption conviction in 2018 barred him from that year’s presidential race and allowed Bolsonaro to cruise to victory. But the Supreme Court in 2021 annulled his convictions, ruling that the presiding judge had been biased and colluded with prosecutors. That enabled his run this year.

WHAT HAPPENS AFTER THE VOTE IN BRAZIL?

Many political analysts have expressed concern that Bolsonaro has laid the groundwork to reject election results if he loses and will attempt to cling to power — much like former U.S. President Donald Trump, whom he admires. Such alarm largely stems from the president’s insistence that Brazil’s electronic voting machines are prone to fraud, though he has never presented evidence for his claims.