Bolivia's president has resigned after nearly 14 months in power amid massive election protests.

Crowds flooded the streets of Le Paz on Monday, honking their horns and setting off fireworks in celebration of President Evo Morales' departure.

The socialist leader had become increasingly unpopular in the country after he pushed aside presidential term limits and claimed victory in a widely questioned October election.

Massive protests had ensued for weeks and Mr Morales then faced pressure from the military to stand down.

Earlier on Sunday, Mr Morales had agreed to a new election after an Organization of American States team found a "heap of observed irregularities" in the October 20 election. Their findings showed that he received just enough votes to avoid a runoff against a united opposition.

But later in the day he resigned after military chief General Williams Kaliman called for him to quit to allow the restoration of peace and stability.

It was not immediately clear who would succeed Mr Morales or how his successor would be chosen.

His vice president also resigned as did the Senate president, who was next in line and the only other official listed by the constitution as a successor, the head of the lower house, had already quit.

"We are celebrating that Bolivia is free," said one demonstrator near the presidential palace.

Mr Morales was the first member of Bolivia's indigenous population to become president and he brought unusual stability and economic progress, helping cut poverty and inequality in the impoverished nation, but he remains deeply popular among many Bolivians.

Backers of the president have clashed with opposition demonstrators in disturbances that have followed the October vote.

After nightfall, there were reports of tensions in La Paz and the neighbouring city of El Alto, with reports of looting and burning of public property and some houses.

The leadership crisis had escalated in the hours leading up Mr Morales' resignation.

Two government ministers in charge of mines and hydrocarbons, the Chamber of Deputies president and three other pro-government legislators announced their resignations. Some said opposition supporters had threatened their families.

In addition, the head of Bolivia's Supreme Electoral Tribunal, Maria Eugenia Choque, stepped down after the release of the OAS findings.

The attorney general's office said it would investigate the tribunal's judges for possible fraud, and police later said Choque had been detained along with 37 other officials on suspicion of electoral crimes.

Mr Morales, whose whereabouts were unknown, went on Twitter late on Sunday to claim authorities were seeking to arrest him, but police General Yuri Calderon denied any apprehension order had been issued for him.

In his tweet, Mr Morales said: "I report to the world and Bolivian people that a police officer publicly announced that he has instructions to execute an unlawful apprehension order against me; in addition, violent groups also stormed my home."

Armed intruders did break into Mr Morales' home in Cochabamba.

Mexico's government reported on Sunday night that 20 members of Bolivia's executive and legislative branches were at the official Mexican residence in the capital seeking asylum.

Mexican Foreign Secretary Marcelo Ebrard also said on Twitter that Mexico would offer asylum to Mr Morales if should ask for it, though there was no indication he had.

Mr Morales was elected in 2006 and went on to preside over a commodities-fed economic boom in South America's poorest country.

The combative former leader of a coca growers union paved roads, sent Bolivia's first satellite into space and curbed inflation.

But even many backers eventually grew wary of his reluctance to leave power.

He ran for a fourth term after refusing to abide by the results of a referendum that upheld term limits for the president - restrictions thrown out by a top court critics claimed was stacked in his favour.

After the October 20 vote, Mr Morales declared himself the outright winner even before official results indicated he obtained just enough support to avoid a runoff with opposition leader and former President Carlos Mesa.

A 24-hour lapse in releasing results fuelled suspicions of vote-rigging.

The government accepted an OAS team sent to look into the election, and that group called for a new contest with a new electoral tribunal.

"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.

The US State Department issued a statement calling for the OAS to send a mission to Bolivia to oversee the electoral process. "The Bolivian people deserve free and fair elections," it said.

  • Read more

Hong Kong protester in critical condition after being shot by police

The state news agency ABI said Mr Morales announced his resignation from Chapare province, where he began his career as a union leader.

At the end of his speech, he said he was returning to Chapare. "I return to my people who never left me. The fight goes on," he said.

There were no immediate signs that the military itself was maneuvering for power, but "I think we have to keep a close eye on what the military does over the next few hours," said Jennifer Cyr, associate professor of political science and Latin American studies at the University of Arizona. "Are they overstepping their role?"

She said "the power vacuum opens up space for the military to potentially step in."