The Ecuadorean president, Rafael Correa, has vowed to punish protesters who rebelled against his leadership, saying there would be "no forgiving nor forgetting" for those who plunged the country into anarchy.
Addressing cheering crowds from the balcony of the Carondelet Palace after being rescued from a besieged hospital in the capital, Correa said the uprising was not a simple police insurrection over pay-related grievances but an attempt to overthrow him.
"Those people made the institution look so bad that they attacked their co-citizens, that they abused the weapons given to them by the society to which they belong, that they dishonoured the police uniform. Of course, all the people who can be identified will have the corresponding sanction. There will be no forgiving nor forgetting."
Earlier today soldiers stormed the hospital with automatic gunfire and stun grenades in a battle which left at least two dead and dozens injured, and enabled Correa's swift and triumphant return to the presidential palace.
Emotional and euphoric, Correa told supporters he would make an example of those responsible.
"What loyalty, what support," he shouted to loud applause. "This will serve as an example for those who want to stop the revolution not through the ballot box but with weapons."
The rescue was the climax to a dramatic day in which a police revolt over austerity measures spiralled out of control, leaving airports and motorways blocked, borders sealed, the president assaulted and businesses looted.
The Ecuadorean police chief, Freddy Martinez, resigned this afternoon after failing to stop the rebellion, a spokesman for the force told Reuters.
The protests were triggered by a law passed by Congress on Wednesday that would end the practice of giving medals and bonuses with each promotion, part of Correa's effort to save costs and slim bureaucracy.
Ecuador is one of South America's most volatile countries, with a tradition of protests, but nobody expected to see scores of uniformed men overrunning the main airport of the capital, Quito, forcing its closure and the declaration of a state of emergency.
It was just the beginning. Hundreds of rank and file soldiers and police took over barracks in Quito, Guayaquil and other cities. They also set up roadblocks of burning tyres and occupied Congress, shouting "respect our rights!" and "long civil war!".
Smoke wafted over Quito and sporadic looting left several banks and supermarkets ransacked. A state TV channel showed police trying to enter its studio. The channel said the police shattered windows and tried to cut the power supply.
Correa, a 47-year-old economist with a firebrand style, went to a regimental barracks to try to negotiate with protesters but was surrounded, punched, doused with hot water and almost blinded with teargas.
A government helicopter tried to evacuate him but was unable to land. The president was spirited to a hospital but police rebels laid siege.
"This is a coup attempt," Correa told state-run TV. "They're trying to get into my room, maybe to attack me. I don't know. But, forget it. I won't relent. They are a bunch of ungrateful bandits. No one has supported the police as much as this government."
Civilian crowds loyal to the president confronted police, prompting Correa to address the throng from his hospital window: "If they want me, here I am," he shouted and ripped his tie loose. "I leave here as president or they take me out as a corpse."
The foreign minister, Ricardo Patino, led another pro-government crowd to the Carondelet Palace, the president's home.
Latin American leaders from across the political spectrum united in support of Correa, as did the US and the UN secretary general, Ban Ki-moon. Colombia and Peru sealed their borders in solidarity with the embattled president. The Opec nation's turmoil pushed global oil prices to nearly $80 (£50) a barrel.
Loyalist army units broke the siege in a 35-minute gun battle that left at least two police dead, according to the Red Cross. One report said the president was smuggled out of the hospital in a wheelchair under cover of darkness as gunfire blazed. A four-wheel-drive vehicle rushed him to the palace. At least 74 people were reported injured during the day's clashes.
Venezuela's president, Hugo Chávez, backed his ally's contention that the unrest was a coup attempt. Doris Solis, an Ecuadorean cabinet minister, disagreed. "This is not a coup," she told CNN.
The head of the armed forces, Ernesto Gonzalez, said troops remained loyal to Correa. "We are in a state of law. We are loyal to the maximum authority, which is the president."
Even before the protests, the government's proposed austerity measures had triggered a political crisis and revolt by the president's own party, the Country Alliance. Correa threatened to dissolve parliament and rule by decree until elections.
Correa, who has a Belgian wife, was elected in 2006 promising a "citizens' revolution" to spread the benefits of oil, gas and other revenues to the poor in the Andean mountains, Amazon forests and Pacific coast slums. He defaulted on a $2.8bn debt, calling it illegitimate, and boosted spending on education and health.
He was re-elected under the new constitution last year but since then public sector workers and indigenous groups, among others, have accused him of breaking promises.
Members don't see ads. If you are a member, and you're seeing this appeal, click here
|The Empire Files: How Palestine Became Colonized|
|US and EU Sanctions Are Devastating Syrian Civilians|
|Police Kill Unarmed Mentally Ill Black Man As Report Finds Law Enforcement Shootings Reminiscent of Lynchings|
|Report: Fossil Fuel Projects Must Be Phased Out Within 17 Years to Halt Global Warming|
|'Patriotic Millionaires' Call for Higher Taxes and Wall St. Regulation|
|Trump and the Social Basis of Fascism|
|Danny Glover: Upcoming Haitian Election an Opportunity for Self-Determination|
|Intelligence Agencies Are Gathering Information Against You in Case of Your Dissent|
|Mexicans Protest on Second Anniversary of Disappearance of 43 Students|
|Baltimore City Council Candidate: Gentrification is Not A Development Plan|
|Balochistan: India Opening the Pandora's Box|
|Clinton vs. Trump Debate: Is One Section of the Oligarchy More Dangerous?|
|Did America Dodge a Bullet?|
|24 Arrested Outside Hofstra University While Demanding An Open Presidential Debate|
|Trump's Position on Jerusalem Puts Him on the Side of the Settler Movement|
|Comply or Die: What the Shootings in Tulsa and Charlotte Reveal About Policing in America|
|BDS Town Hall with the Former Green Party of Canada Justice Critic|
|Corbyn Wins Leadership, But Can He Unite the Labour Party?|
|Danny Glover on the Struggle for Democracy in Haiti|
|Should Third Parties Be Included in Televised Debates?|
|Anti-BDS Campaign Aims to Undermine Academic Freedom and Free Speech on Palestine|
|Ecuador Proposes Worldwide Elimination of Tax Havens|
|Did America Dodge a Bullet?|
|Why the Federal Reserve Needs To Go Beyond Interest Rate Policy|
|'Hands Dripping with the Blood of the Afghan People': US Agrees to Pardon and Reward Warlord|
|Recall Referendum on Maduro Moves to Next Phase in spite of "Irregularities"|
|Gary Johnson Supporters: Privatize Everything, But Not the Commission on Presidential Debates|
|TPP Will Effectively Kill Climate Treaties|
|US National Security Policy for Climate Change Seeks Security for Corporate-Controlled Assets|
|U.S. Policy in Syria: Regime Change or Regime 'Facelift'?|