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
|Is the US Headed Towards War in Syria?|
|Peaceful Prayer Against Pipeline Met with Police Violence and Mass Arrests|
|TRIPS: The Story of How Intellectual Property Became Linked to Trade (4/7)|
|Breaking Through Power: Ralph Nader and Kim O'Neil on The Citizen Library|
|EU-Canada Trade Doomed to Fail After Walloon Parliament Rejects CETA|
|Amnesty For FARC Rebels and Land Restitution Will Determine Fate of Colombian Peace Process|
|War Vet: Reenlistment Bonuses a Pittance Compared to the Billions Wasted in Iraq|
|The Story of How Intellectual Property Became Linked to Trade (3/7)|
|TRNN REPLAY: The Real News Town Hall Pt. 2: Should the Community Control the Police?|
|Breaking Through Power: Mitch Rofsky on the Responsibility of Business for Civil Engagement|
|President Maduro Calls on the Pope to Help Resolve Conflict with Opposition|
|Broken Treaties Central to the Injustice of the Dakota Access Pipeline|
|The Industrial Agricultural System is Limiting Food Access and Driving Climate Change|
|TRNN REPLAY: The Real News Town Hall: Should the Community Control the Police? Pt.1|
|Breaking Through Power: Wendy Fields on Movement Building|
|How Washington's Money-Machine Stays Ahead of Democracy|
|Tribes Reclaim Unceded Territories to Block Dakota Access Pipeline|
|Obama Holding Further Military Involvement in Syria, But Will the Next President?|
|TRIPS: The Story of How Intellectual Property Became Linked to Trade (2/7)|
|A Just Transition for Fossil Fuels Workers is Possible|
|Breaking Through Power: Jordan Estevao on Training for Change|
|The Right to Housing in Baltimore - TRNN Grand Opening|
|Tom Hayden on the Obama-Biden Ticket|
|Clinton's Strategy: Make Obama Unelectable|
|Prospect of US Arms Shipments to Ukraine After Elections Prompts Restarting of Peace Negotiations|
|TRIPS: The Story of How Intellectual Property Became Linked to Trade (1/7)|
|Why is the State of Maryland Defending Racist Practices of the Pocomoke police?|
|Elites Outraged At Trump's Refusal to Accept Election Result|
|Two More Land Rights Activists Assassinated in Honduras|
|Final Presidential Debate Accentuates Candidates' Divide on Abortion Rights|