Bolivia's socialist President Evo Morales, who claimed victory in a disputed election Oct. 20, sparking outcry across the Latin American country, announced Sunday he's resigning.

“I am sending my resignation letter to the Legislative Assembly of Bolivia,” the 60-year-old socialist leader said in a statement.

He vowed to step down after the military had urged him to do so. It was not immediately clear who would succeed Morales; his vice president also resigned, as did the Senate president, who was next in line.

Three people, at least, have been killed in the subsequent protests in Bolivia and hundreds have been injured.

BOLIVIA ERUPTS IN VIOLENCE AFTER EVO MORALES' NEAR OUTRIGHT ELECTION WIN, VOTE-COUNT DELAY

After nearly 14 years in power, Morales claimed he won a fourth term last month.

The man Morales said he defeated, opposition leader and former President Carlos Mesa, argued that a preliminary report by the Organization of American States [OAS] showed “monstrous fraud,” and he added that Morales “can’t be a candidate in new elections.”

OAS on Sunday said it found a “heap of observed irregularities” in the Oct. 20 election, and said a new vote should be held.

“Mindful of the heap of observed irregularities, it’s not possible to guarantee the integrity of the numbers and give certainty of the results,” the OAS said in a statement.

BOLIVIA MAYOR DRAGGED THROUGH STREETS, HAS HAIR CUT BY PROTESTERS AS ELECTION VIOLENCE SWELLS

Morales became the first president from Bolivia’s indigenous population in 2006 and presided over a commodities-fed economic boom in South America’s poorest country. The former leader of a coca growers union, he paved roads, sent Bolivia’s first satellite into space and curbed inflation.

CLICK HERE FOR THE FOX NEWS APP

Gen. Williams Kaliman, the country’s military chief, gave an appeal Sunday before the resignation.

“After analyzing the situation of internal conflict, we ask the president to resign, allowing peace to be restored and stability to be maintained for the good of our Bolivia,” Kaliman said on national television.

The Associated Press contributed to this report.