Turkish television on Saturday broadcast images of a plane carrying President Recep Tayyip Erdogan landing at Istanbul's AtatÃ¼rk Airport shortly after Turkey's MIT intelligence service said that the attempt by elements of the military to overthrow the government had collapsed.
"The attempted coup has failed. It is nearly over," MIT deputy press secretary Nuh Yilmaz told reporters, though acknowledging the existence of pockets of resistance among the rebels who rose against the government late on Friday night.
Fighting continued in Ankara, where military aircraft made a pair of bombing runs in the vicinity of the parliament building, resulting in injuries, Efe news reported.
At least 17 officers died in a blast at a police special forces installation in Ankara's Golbasi district, according to CNNTÃ¼rk, while other media outlets reported that an F-16 shot down a helicopter belonging to the rebel forces.
However, the highlight of the coup was when the Turkish President used FaceTime to reach out to the masses and gather support.
Erdogan, who was vacationing on the coast, reached out to CNNTÃ¼rk by video, shortly after the coup leaders announced they had seized control of the country.
"I urge our people, everybody, to fill the squares of the country to give the necessary response," he said using Facetime.
"This coup d'etat will never succeed. Sooner or later, it will be eliminated. I am going to return to Ankara," Erdogan said.
He also added that he would personally join the movement to occupy the squares.
Following this, television footage showed civilians trying to occupy public squares in major cities and the Dogan news agency said that soldiers fired on anti-coup protesters in Istanbul, leaving an undetermined number of people wounded.
At roughly the same time that Erdogan's plane touched down, employees of CNNTÃ¼rk said that rebel soldiers stormed their studios and forced them to stop broadcasting.
TRT television, meanwhile, said that the rebel soldiers who had commandeered its studios to broadcast statements from the coup leaders were neutralized by a group of civilians.
The chief of the General Staff, Gen. Hulusi Akar, was rescued safe and sound from the rebel troops who took him hostage, NTV television reported.
The tanks and troops deployed earlier to Istanbul's AtatÃ¼rk Airport have been withdrawn, allowing police and hundreds of Erdogan supporters to enter the terminal.
In Istanbul, security forces closed the two bridges across the Bosphorus that connect the European and Asian sectors of the metropolis, Efe news reported.
The violent confrontation between troops and protesters took place at the entrance to one of the bridges, which have since been reopened.
The rebels claimed that they acted with the aim of "restoring democracy".
Istanbul (Turkey): Military attempts coup, people gathered to protest against Turkish soldiers pic.twitter.com/WHtpqJZ1sgâ€” ANI (@ANI_news) July 16, 2016
Istanbul (Turkey): Military attempts coup, people gathered to protest against Turkish soldiers pic.twitter.com/c4vaZW5Lluâ€” ANI (@ANI_news) July 16, 2016
The takeover announcement followed an acknowledgement by Prime Minister Binali Yildirim that elements of the military launched "an illegal attempt" to seize power.
"We are working on the possibility of an attempt. We will not allow this attempt," he told NTV television. "It would be wrong to call it a coup."
He acknowledged that rebellious soldiers had "surrounded some important buildings".
"Those who are in this illegal act will pay the highest price," Yildirim said, insisting Turkey would never allow any "initiative that would interrupt democracy".
The leaders of the military revolt described Erdogan as a "traitor" who established an "authoritarian regime of fear".
Under Erdogan, leader of the Islamist AKP party, "all state institutions began to be designed with ideological aim" and "secular rule of law was effectively eliminated," the rebels said.
Meanwhile, Erdogan said in Istanbul that those who were involved in coup attempt will be punished. A mission to fully cleanse the Turkish military of traitorous elements has begun, he said.