Bolivian President Evo Morales said on Sunday he would resign to ease violence that has gripped the South American nation since a disputed election last month, but he stoked fears of further unrest by saying he was the victim of a "coup" and faced arrest.
Video footage showed clashes on the streets of La Paz and some buildings on fire Sunday night after the military had called on Morales to step down and allies had deserted him following weeks of protests since the Oct. 20 election.
Morales, in power for nearly 14 years, said in televised comments earlier that he would submit his resignation letter to help restore stability, though he aimed barbs at what he called a "civic coup" and later said police planned to arrest him.
"I am resigning, sending my letter of resignation to the Legislative Assembly," Morales said, adding that it was his "obligation as indigenous president and president of all Bolivians to seek peace."
However, underscoring the ongoing tensions, Morales later said on Twitter that the police had an "illegal" warrant for his arrest and that "violent groups" had attacked his home.
The commander of Bolivia's police force said in a television interview that there was no warrant for Morales' arrest.
The departure of Morales, a leftist icon and the last survivor of Latin America's "pink tide" of two decades ago, is likely to send shockwaves across the region at a time when left-leaning leaders have returned to power in Mexico and Argentina.
Vice President Álvaro García Linera also resigned.
Some of Morales' leftist allies in Latin America decried the turn of events as a "coup," including Venezuelan President Nicolas Maduro and Argentine President-elect Alberto Fernandez.
Mexican Foreign Minister Marcelo Ebrard said his country would offer Morales asylum if he sought it.
Bolivia under Morales had one of the region's strongest economic growth rates and its poverty rate was cut in half, though his determination to cling to power and seek a fourth term alienated many allies, even among indigenous communities.
Pressure had been ramping up on Morales since he was declared the winner of the Oct. 20 election.
General Williams Kaliman, the head of Bolivia's armed forces, on Sunday said the military had asked Morales to step down to help restore peace and stability after weeks of protests over the vote.
Kaliman added that the military was calling on the Bolivian people to refrain from violence and disorder.
Earlier on Sunday, Morales had agreed to hold new elections after a report from the Organization of American States (OAS), which conducted an audit of the Oct. 20 vote, revealed serious irregularities.
The OAS report said that election should be annulled after it had found "clear manipulations" of the voting system that called into question Morales' win, with a lead of just over 10 points over main rival Carlos Mesa.
'TODAY WE WON A BATTLE'
The resignations of Morales and his vice president meant it was not initially clear who would take the helm of the country pending the results of new elections.
According to Bolivian law, in the absence of the president and vice president, the head of the Senate would normally take over provisionally. However, Senate President Adriana Salvatierra also stepped down late on Sunday.
Legislators were expected to meet to agree on an interim commission or legislator who would have temporary administrative control of the country, according to a constitutional lawyer who spoke to Reuters.
Morales, speaking at an earlier news conference, had tried to placate critics with a pledge to replace the electoral tribunal for the new vote, though his opponents - already angry that he ran in defiance of term limits - were not assuaged.
The election standoff has dented the image of Morales - who has helmed Bolivia through a period of relative stability and economic growth - and hit the landlocked nation's economy.
His "legacy will be compromised and the region will suffer another impact with consequences well beyond Bolivia," said Juan Cruz Diaz, managing director of risk advisory Cefeidas Group, referring to Argentina, Chile, Peru, Paraguay and Brazil.
Luis Fernando Camacho, a civic leader from the eastern city of Santa Cruz who has become a symbol of the opposition, said the OAS report on Sunday clearly demonstrated election fraud. He had reiterated his call for Morales to resign.
"Today we won a battle," Camacho told a crowd of cheering supporters in the capital before Morales' resignation, though he added more time was needed to repair the constitutional order and democracy. "Only when we can be sure that democracy is solid, then will we go back home."
US Secretary of State Mike Pompeo had also welcomed the call for a new vote to "ensure free and fair elections."
MORALES ALLIES FALL
As the fall-out from the audit report swept across Bolivia, Morales' support crumbled on Sunday.
Several of his allies resigned, including Mining Minister Cesar Navarro and Chamber of Deputies President Victor Borda, who belongs to Morales' party. They both cited fear for the safety of their families as the reason for stepping down.
Juan Carlos Huarachi, leader of the Bolivian Workers' Center, a powerful pro-government union, said Morales should stand down if that would help end recent violence.
In recent days police forces were also seen joining anti-government protests, while the military said it would not "confront the people" over the issue.
The attorney general's office also announced it had ordered an investigation with the aim of prosecuting the members of the electoral body and others responsible for the irregularities.
Mesa had also said Morales and his vice president should not preside over the electoral process or be candidates.
Morales, who came to power in 2006 as Bolivia's first indigenous leader, had defended his election win but said he would adhere to the findings of the OAS audit.
"The manipulations to the computer systems are of such magnitude that they must be deeply investigated by the Bolivian State to get to the bottom of and assign responsibility in this serious case," the preliminary OAS report had said.
Voting in a new election should take place as soon as conditions are in place to guarantee it being able to go ahead, including a newly composed electoral body, the OAS said.
The OAS added that it was statistically unlikely that Morales had secured the 10-percentage-point margin of victory needed to win outright.