Guatemala’s Bernardo Arévalo was resoundingly elected to be the country’s next president Sunday, but a legal case could prevent him from assuming power in the corruption-plagued Central American country.

With 100% of votes counted, preliminary results gave Arévalo 58% of the vote — over former first lady Sandra Torres’s 37% — but questions remain as to whether he would be allowed to assume power, as the Attorney General's Office could suspend his party’s legal status.

Arévalo, an anti-corruption crusader whose win would be seen as a reprimand to the governing elite over widespread allegations of corruption, is a member of the Seed Movement party, which remains under investigation by the Attorney General’s Office for signatures it obtained years earlier to officially register.

"We know that there is a political persecution underway that is being carried out through the institutions and prosecutor’s offices and judges that have been corruptly co-opted," Arévalo said Sunday night. "We want to think that the force of this victory is going to make it clear that there is no place for the attempts to derail the electoral process. The Guatemalan people have spoken forcefully."

UNACCOMPANIED MIGRANT GIRL FROM GUATEMALA DIES IN US CUSTODY FROM UNDERLYING DISEASE

Arevalo waving

Presidential candidate Bernardo Arevalo speaks waves after preliminary results showed him the victor in a presidential run-off election in Guatemala City, Sunday, August 20, 2023.  (AP Photo/Moises Castillo)

The official results will still have to be certified.

According to Arévalo, outgoing President Alejandro Giammattei congratulated him and told him that they would begin planning the transition the day after the results were certified, but it is not immediately clear whether they will be, as the AG office’s investigation into the party is still ongoing.

Last month, the Attorney General’s Office announced that it was investigating the signatures gathered by Arévalo’s Seed Movement party, and a judge briefly suspended the party’s legal status before a higher court intervened.

A voter ballot

An electoral official shows the ballot with the candidates for the run-off presidential election in Guatemala City, Sunday, August 20, 2023.  (AP Photo/Moises Castillo)

Edmond Mulet, a former Guatemalan diplomat and president of Congress, said the prosecutor’s office took similar against him when he competed in the first round of the presidential election as the candidate for the Cabal party.

PARTIES, COURTS INTERFERED IN GUATEMALAN ELECTIONS, OBSERVERS' REPORT STATES

He said that prosecutors opened three cases against him and his party, in what he described as a safeguard in case he had made it to the run-off.

"In any other country in the world, the people would have been out in the streets a long time ago, but in Guatemala there’s another solution: migration," Mulet said, pointing to large populations of people fleeing to the U.S. and other Central American countries. "That’s the pressure valve. Elsewhere, this would have exploded already."

Guatemalans in the street

Supporters of the Guatemalan presidential candidate for the Semilla party, Bernardo Arevalo, celebrate winning the presidential run-off election in Guatemala City on August 20, 2023. Surprise favorite Bernardo Arevalo was swept to victory in Guatemala's presidential election on Sunday, with his anti-corruption message firing up weary voters.  (JOHAN ORDONEZ/AFP via Getty Images)

Hundreds of thousands of Guatemalans have emigrated to the United States in recent years. The Biden administration has pointed to Guatemala’s corruption as a major factor behind the migration.

Mulet sees at least two likely scenarios resulting.

In the first, he sees the Seed Movement being canceled and Arévalo being allowed to assume the presidency without a party.

Such a scenario would have dire effects on his party, including his representatives being barred from holding leadership positions or leading committees in the Congress.

FEDERAL AUTHORITIES ARREST 6 IN BUST OF GUATEMALAN FAMILY SMUGGLING RING

If that results, Arévalo could almost immediately expect attempts from Congress to remove him from office. He would subsequently struggle to advance any legislation.

Karin Herrera, Bernardo Arevalo

Guatemalan presidential candidate for the Movimiento Semilla party, Bernardo Arevalo, and his vice president, Karin Herrera, celebrate the results of the presidential run-off election in Guatemala City, on August 20, 2023. Surprise favorite Bernardo Arevalo was swept to victory in Guatemala's presidential election on August 20, with his anti-corruption message firing up weary voters.  (LUIS ACOSTA/AFP via Getty Images)

In the other scenario, Mulet described the Attorney General’s Office succeeding in canceling the legal status of the Seed Movement.

This could potentially result in the AG office arguing that because the party was improperly registered, everything that occurred afterward, including Arévalo’s nomination, is nullified and he cannot assume the presidency.

Another possible situation could include Giammattei leaving office, as constitutionally mandated on January 14. Should there not be a president-elect — or vice president-elect — to take his place, the next in line would be the president of the Congress.

People cheering

Supporters of presidential candidate Bernardo Arevalo celebrate his expected victory in the run-off presidential election in Guatemala City, Sunday, August 20, 2023. Guatemala´s Supreme Electoral Tribunal Magistrate Blanca Alfaro called Arevalo the "virtual winner" and called for an immediate national dialogue to begin to reconcile the country's deep political divides.  (AP Photo/Santiago Billy)

The president of the Congress would then present a list of three names, possibly including his or her own, to Congress, and lawmakers would select a temporary president for the nation.

CLICK HERE TO GET THE FOX NEWS APP

Eduardo Núñez, the Guatemala resident senior director for the National Democratic Institute, described the country’s polarization and the judicialization of the electoral process as completely new legal territory that does not have a clear result.

A new election could be called sooner, he said.

Sandra Torres

Sandra Torres, presidential candidate with the UNE party, votes in the run-off presidential election in Guatemala City, Sunday, August 20, 2023.  (AP Photo/Santiago Billy)

Mulet speculated, before Sunday’s results were known, that a large margin of victory for Arévalo could force his opponents to intervene or potentially think twice about doing so.

"I think they’ve been testing Guatemalans . . . to see if they’re going to mobilize," Mulet said.

A big question remained about how Guatemalans could react to any government actions that appear to go against the will of the voters.

The Associated Press contributed to this report.