The coup attempt crumbled as Turkish President President Recep Tayyip Erdogan urged people to take to the streets to support his government.
For a while the rebels looked victorious. This was their skirmish line blocking Istanbul's Bosphorus Bridge Friday night.
And this is what they looked like Saturday-the image of defeat.
Using an iPhone Facetime app, a defiant President Erdogan urged the Turkish people to show their support in the streets.
They did. Smart phones and people power helped crush the coup.
It wasn't quite bloodless.
Prime Minister Binali Yildirim blamed a Muslim cleric in the United States for helping instigate the rebellion.
"Especially after what happened last night, I don't believe any country would stand by this man卋y this terrorist leader. Any country that would do that is not a friend to Turkey. Any country that would stand by him is at war with Turkey," he said.
On Saturday, the government said it had rounded up nearly three thousand rebel troops and officers the alleged "backbone of the rebellion."
Erdogan accused the rebels of plotting to kill him. "They will pay a heavy price for this," he said.
Crowds jammed the nation's streets for a second consecutive night-this time protest the coup they helped defeat.