Erdogan warned his supporters that those behind the coup 'would pay a heavy price' for their treachery

He urged his fans to remain on the streets and occupy public spaces to prevent any retaliation by the military

The president addressed supporters following his dramatic return to Istanbul where he announced the clampdown

Recep Tayyip Erdogan has rounded up almost 6,000 troops, judges and prosecutors following Friday night's coup


Wiping tears from his eyes, Turkish President Recep Tayyip Erdogan broke down today as he attended a mass funeral for victims of Friday's failed coup attempt.

Speaking at the service in Istanbul he then vowed to purge all state institutions of supporters of an Islamist cleric his government blames for the uprising. Erdogan promised to cleanse the country of the 'virus' of those who back Fethullah Gulen.

He said Turkey, through the justice ministry and foreign ministry, would request the extradition of the cleric, who is based in the United States, and his backers.

The country's president was overcome with grief at the funeral of his friend Erol Olcak and his 16-year-old son, who were shot dead on the Bosphorus bridge while protesting against the coup. But Erdogan's political rivals claim it was the leader himself who staged the takeover to further tighten his grip on power, an accusation he denies.

The mass funeral was held for civilians who died on Bosphorus Bridge in Istanbul, including İlhan Varank, the brother of Erdogan's chief supervisor. He was a professor of computer science and was shot according to Turkish media.

Crowds chanted 'Fethullah will come and pay', 'Allah is Great' and 'We want the death penalty'. Erdogan said that in democracies, 'you cannot push the wish of the people to one side' but also said 'we are not after revenge’.

Scroll down for video

Emotional: Wiping tears from his eyes, Turkish President Recep Tayyip Erdogan broke down today as he attended a mass funeral for victims of Friday's failed coup attempt. Erdogan promised to cleanse the country of the 'virus' of Fethullah Gulen backers

Speaking at the service he vowed to purge all state institutions of supporters of an Islamist cleric his government blames for the uprising

Turkish President Recep Tayyip Erdogan, centre, has vowed to purge all state institutions of supporters of an Islamist cleric his government blames for Friday's failed coup attempt

Relatives mourn near by coffins of victims who were killed in a coup attempt which started on Friday and was defeated the next day

Women fight to hold back the tears during the funeral of a victim killed during the attempted coup by Turkish military members

Turkish President Recep Tayyip Erdogan, left, stands near by coffins of victims who were killed in a coup attempt. The ceremony is too much for one woman who collapses to the floor, right

Crowds chanted 'Fethullah will come and pay,' 'Allah is Great' and 'We want the death penalty'. Pictured, mourners carry a coffin

Buried: Several men lower the body into the ground during the funeral of a victim of the failed coup attempt in Istanbul on Friday

Some 104 coup plotters were killed during the uprising, while 160 people - made up of police officers and civilians - 'fell as martyrs'

Turkish Land Forces commander General Salih Zeki Colak (left0 stands with army commanders as they attend a mass funeral, while a colleague cries as friends carry the coffin of a police officer killed in the failed military coup (right)

On Saturday, Erdogan made a brief public appearance amid a phalanx of heavily-armed bodyguards, he said: 'They will pay a heavy price for this. This uprising is a gift from God to us because this will be a reason to cleanse our army.'

Life in Turkey is back to normal after a failed coup attempt, Prime Minister Binali Yildirim said on Sunday afternoon, saying the central bank, capital markets board, banking system and stock exchange were all functional.

At least 265 people were killed in clashes between the armed forces and police. Scores of civilians were among the dead.

Rebel leader General Erdal Ozturk, who commands armed forces in Istanbul has been arrested and charged with treason. The state-run news agency Anadolu said the commander of the Second Army, which guards the borders with Iraq, Syria and Iran has also been detained.

Many soldiers who participated in the coup have been beaten up by Erdogan's supporters.

Meanwhile, a Turkish government official reported that the commander of an air base used by U.S.-led coalition jets that conduct bombing runs against the Islamic State group in Iraq and Syria has been detained.

The official said Sunday that Gen. Bekir Ercan Van, ten other soldiers and one police officer from the Incirlik base are detained for their role in the botched Friday coup attempt.

The Turkish private DHA news agency showed footage of Van handcuffed and pushed into a van outside a courthouse.

Speaking at a funeral in Istanbul on Sunday, Erdogan vowed to 'clean all state institutions of the virus' of Fethullah Gulen supporters

Three women hold on to the coffin of Omer Can Katar, who was among those to be killed during the attempted military coup

Rebel leader General Erdal Ozturk, pictured, has been arrested and charged with treason and possibly faces the death penalty

Supporters of Erdogan returned to Taksim square in Istanbul to celebrate his victory over the rogue military elements behind the coup

Tens of thousands of government supporters packed into areas such as Kizilay Square in Ankara following an appeal by Erdogan

In Taksim square, which was occupied by troops on Friday, thousands of people waved flags and sang patriotic songs

People clambered on top of a monument in the coastal city of Izmir to unveil a giant poster of Erdogan while decrying 'Gulenists'

There were growing fears about the security of opposition figures within Turkey after Erdogan's supporters continued their protests

ARMED MEN SIZE POLICE STATION IN ARMENIAN CAPITAL YEREVAN AND TAKE UNKNOWN NUMBER OF HOSTAGES A group of armed men seized a police station in Armenia's capital Yerevan along with an unknown number of hostages on Sunday morning, the country's security service said. Negotiations were underway to resolve the situation peacefully, the security service said, accusing the hostage takers' supporters of spreading false rumours on the internet that an armed uprising against the government was underway. Armenian news agencies reported that the armed men were demanding the release of Jirair Sefilian, an opposition leader and former military commander, who was arrested in June. Sefilian has strongly criticised Armenia's President Serzh Sargsyan and is unhappy about the way the government has been handling a long-running conflict between pro-Armenian separatists and the breakaway Azeri region of Nagorno-Karabakh. Agencies reported that the armed men were demanding that President Sargsyan quit and that both some policemen and some of the hostage takers had been wounded. Reuters could not immediately confirm either assertion. The security service said law enforcement agencies were working as normal to uphold public safety. TV images of the scene showed a heavy police presence with armoured vehicles blocking off the road to the police station. The security service said the hostage takers' supporters were spreading what it called 'disinformation' about the seizure of other buildings as part of an armed uprising. 'The National Security Service officially announces that such information is absolutely untrue,' it said. Police in Armenia block a street after a group of armed men seized a police station along with an unknown number of hostages, according the country's security service Advertisement

The President accused the plotters of being part of a conspiracy led by his former ally Fethullah Gulen, who is based in Pennsylvania. The US-based preacher accused Erdogan of staging the coup himself to justify his purge.

In his address to his fanatical following, he revealed how he was almost assassinated while on holiday. He said: 'They bombed places I had departed from right after I was gone. They probably thought we were still there.'

Military tanks were stopped by supporters from occupying Ataturk airport in Istanbul after civilians lay down in the road to prevent them passing.

Data on Flight Radar 24 showed Erdogan's jet circling for more than 30 minutes south of Istanbul until it was safe for the aircraft to approach the airport.

A soldier suspected of being involved in the coup is escorted by policemen as he arrives at a courthouse in the town of Marmaris, Turkey

Admiral Namik Alper, commander of Aksaz naval base, is escorted by plainclothes policemen as he arrives at the courthouse in Marmaris

Soldiers suspected of being involved in the coup attempt are escorted by policemen as they arrive at a courthouse in the town of Marmaris

Amid the joyous scenes, almost 3,000 members of the military have been rounded up accused of being part of the coup

More than 265 people were killed during the five-hour coup which ended in the early hours of Saturday morning amid dramatic scenes

Critics of Erdogan have accused him of using the instability as an excuse to clamp down on opposition against his regime

After he emerged from the jet, he announced the coup was over before branding the rebel soldiers as 'traitors'.

Turkish officials claimed some of the plotters were based in Incirlik air base in the south east of the country from where the US military is conducting bombing missions against ISIS in northern Syria.

Tens of thousands of supporters of the regime gathered in cities across Turkey with Prime Minister Binali Yildirim claiming those behind the coup 'will receive every punishment they deserve'.

He and Erdogan have indicted laws banning the death penalty could be repealed so those involved in the coup could be executed.

Eight members of the coup fled to Greece on a stolen Blackhawk helicopter.

Greek PM Alexis Tsipras said the eight men's asylum applications would be dealt with 'quickly.

Soner Cagaptay, director of the Turkish research at The Washington Institute said Erdogan has been strengthened by the coup.

He said the president was now a 'sort of mythical figure'.

Cagaptay said: 'It will allow him (Erdogan) to crack down on liberty and freedom of association, assembly, expression and media in ways that we haven't seen before and find strong public support within the country.'

Fadi Hakura, a Turkey expert at the Chatham House think tank in London, said the attempted coup appeared to have been 'carried out by lower-ranking officers'.

'Their main gripe seems to have been President Erdogan's attempt to transform his office into a powerful and centralised executive presidency. In the short term, this failed coup plot will strengthen President Erdogan.'

Despite the success of civilians challenging the attempted military takeover, some of the unarmed protesters were shot dead on Friday

A civilian punches a Turkish soldier who took part in the failed military coup as he is led away by police having surrendered

Thousands of supporters of President Recep Tayyip Erdogan congregated in Istanbul awaiting for him to address a major rally

Supporters of President Recep Tayyip Erdogan clashed with journalists near the Turkish military headquarters in Ankara following the coup

The President used Twitter to call on supporters to prevent any additional military action, adding: 'We should keep on owning the streets no matter at what stage because a new flare-up could take place at any moment'

Thousands of people congregated outside the parliament building in Ankara as a crisis meeting was held to discuss the attempted coup

Turkish Prime Minsiter Binali Yildirim briefed politicians on the attempted coup in the national parliament in Ankara

Senior members of the judiciary and chief of the military chief of staff General Hulusi Akar, centre, attended the emergency meeting

A relative of polie officer Nedip Cengiz Eker clings to his coffin during his funeral in Marmaris, Turkey following last night's coup attempt

Eker received a guard of honour from the Turkish navy and military who remained loyal to president Recep Tayyip Erdogan last night

President Erdogan has described those who died protecting his government as martyrs while branding the insurgents as traitors

Hundreds of Turks have taken to the streets to ensure no fresh coup could take place after last night's uprising was defeated

A soldier cowers as he is confronted by plain-clothes police officers and civilians after the military surrendered on Bosphorus Bridge

People wave national flags as they march from Kizilay square to Turkish General Staff building to react against military coup attempt

A young girl joins police officers loyal to President Erdogan atop a tank abandoned by military personnel who surrendered

More than 2,800 rebels have been detained after their failed military coup that killed at least 250 as Turkish President Erdogan vows revenge for the bloody uprising (pictured: Up to 100 rebel soldiers surrendered on Bosphorus Bridge after their failed uprising)

Ordinary Turks confronted rifle-wielding soldiers, climbed atop tanks and laid in front of military vehicles in an effort to take back control of the country, ignoring a curfew issued by coup plotters designed to allow the army to bring down the government unopposed

There were unconfirmed reports of one soldier being beheaded by a mob of civilians on the bridge after a video surfaced online showing a crowd launching an attack on the downed man. However in the video the man is still alive and shows no beheading, though it is unknown if this happened after the footage ended

People wave Turkish flags as they stand around the Republic Monument in Taksim Square in Istanbul, Turkey

Men wave flags as they stand on tanks as people walk on the Bosphorus Bridge after taking over the military position in Istanbul

A Turkish civilian whips soldiers with his belt after they surrendered to police on Bosphorus Bridge, a strategic landmark which was seized by the army during the coup

People climb on tanks after around a hundred soldiers occupying Bosphorus Bridge surrendered in Istanbul, Turkey

The President made his triumphant return back to Istanbul after his forces quelled the coup on Friday evening, as he warned that the members of the military behind the plot to oust him would pay a 'heavy price for their treason'.

Prime Minister Binali Yildirim said that, while the death penalty was abolished in Turkey in 2004, the country may consider legal changes to deter any such coup happening again.

The Greek police ministry said a Turkish military helicopter landed in Greece this morning and eight men on board, thought to be senior coup plotters, have requested political asylum. Turkey has asked for the men, made up of seven soldiers and one civilian, to be extradited back to the country.

The rebel army faction - who call themselves the 'Peace Council' - said they were trying to overthrow the government to 'protect human rights' and restore democracy from Erdogan's Justice and Development Party, AKP, which has repeatedly faced criticism from human rights groups and Western allies over its brutal crackdowns on anti-government protesters.

However, Erdogan has blamed his old scapegoat, Fethullah Gulen for orchestrating the uprising. Muslim cleric Gulen, the president's rival who lives in self-imposed exile in Pennsylvania, U.S. as the head of a billion dollar religious movement, has often been blamed for political unrest in Turkey.

One bloodied soldier cowered underneath a coach as a mob started beating him on Istanbul's Bosphorus Bridge

The five hours of chaos began when two busloads of soldiers burst into the headquarters of the state-run TRT news agency, taking news off the air and replacing it with a stream of weather forecasts.

After launching the coup, the Turkish military imposed a curfew on civilians telling them to stay in their homes, but Erdogan called on supporters to ignore the order and take to the streets, which is thought to have caused the army to relinquish control.

Turkey's top general Hulusi Akar was taken hostage at the military headquarters in the capital Ankara after an attempt to bring down the government, but was rescued during the night.

One military official, Navy Fleet Commander Admiral Veysel Kosele, is currently unaccounted for and it is unknown whether or not he was part of the coup against President Erdogan.

Turkey's state-run news agency said five warships which reportedly set sail during the attempted coup have returned to their military port in northwest Turkey, but it is unclear whether or not the Admiral was abroad one of the ships.

After the uprising was crushed in the early hours of Saturday morning, Erdogan told the gathered masses at Ataturk Airport that those loyal to Gulen had 'penetrated the Armed Forces and the police, among other government agencies, over the past 40 years'.

'What is being perpetrated is a rebellion and a treason,' Erdogan said. 'They will pay a heavy price for their treason to Turkey.'

Soldiers, who surrendered following the defeat of last night's attempted coup, are loaded onto a bus following their arrest by police officers and civilians

A man lays down in front of a tank on the approach to Ataturk airport in Istanbul as citizens took to the streets to oppose the military coup

Civilians launch an attack on an armoured police car carrying Turkish soldiers who participated in the coup against President Erdogan

People celebrate on an abandoned military tank after they took over military position on the Bosphorus bridge in Istanbul

People shout at the soliders involved in the coup attempt who have surrendered on Bosphorus Bridge following their surrender

A soldier lies dead underneath rubble following the defeat of a military coup by Turkey's army to overthrow President Erdogan

Police officers arrest a soldier after he was attacked by a mob of civilians following the surrender of 100 rebels on Bosphorus Bridge in Istanbul

Up to 100 rebel soldiers surrendered on Bosphorus Bridge after their failed uprising. At least 2,863 connected have been arrested in connection with the dramatic coup which lasted approximately five hours.

New British foreign secretary Boris Johnson said on Twitter that he has spoken to Turkish counterpart Mevlut Cavusoglu following the attempted military coup, adding: 'I underlined UK support for the democratic elected government and institutions.'

Explosions and gunfire erupted in Istanbul and Ankara on Friday night during the coup which killed at least 250 people in the army's bid to overthrow the Islamic government.

Elsewhere troops opened fire on civilians attempting to cross the river Bosporus in Istanbul in protest to the military coup, while a bomb exploded at the parliament building according to the state's press agency as the security situation in the country becomes more perilous.

Colonel Muharrem Kose reportedly led the Turkish military forces in the uprising.

Kose had recently been kicked out of the army, from his position as head of the military's legal advisory department, over his links to Gulen. He was killed during the clashes with Erdogan's supporters, sources report.

Civilians take cover outside the building of the General Staff, the final landmark still held by coup plotters who are in the process of surrendering to police officers

A Turkish policeman and other people stand atop of a military vehicle in Ankara after crushing the rebellion

Clothes and weapons beloging to soldiers involved in the coup attempt that have now surrendered lie on the ground abandoned on Bosphorus Bridge

The man then stood up and took off his shirt in an effort the present the tank from taking position in the airport

The police siege around the building of the General Staff, thought to be the final landmark held by coup plotters who are in the process of negotiating their surrender

As military took to the streets, Erdogan had urged his supporters to ignore a curfew and take back control of the country.

Tanks and armoured personnel carriers tried to seize strategic points in Istanbul and Ankara but were faced down by unarmed civilians who lay down in front of the heavy armour.

Police special forces headquarters was also hit and was razed to the ground. Other witnesses reported attack helicopters firing machine guns in the capital Ankara in a bid to depose the Islamic government.

There were also reports that a Turkish Air Force F-16 had shot down a Sikorsky helicopter over Ankara. The government claimed the jet destroyed the helicopter which had been 'hijacked by coup plotters'.

In Takism square, around 30 rebel soldiers surrendered following a gun battle with police loyal to Erdogan. A number of F-16 fighter jets had screamed across the square at low level blasting the area with a sonic boom.

During the night, both the civilian government and the military claimed they were in control of the country, with reports of sporadic gunfire and explosions.

In a statement, the army faction said that they took action 'to reinstall the constitutional order, democracy, human rights and freedoms, to ensure that the rule of law once again reigns in the country, for the law and order to be reinstated'.

The Turkish military has also long seen its role as safeguarding Turkey's secularist agenda, and has staged numerous coup's over the last 60 years when it feels the government's stance is moving too far away from that.

Civilians help police officers to arrest soldiers at Taksim Square in Istanbul after ordinary Turks helped to stop the attempted coup

People gather for celebration around Turkish police officers, loyal to the government, standing atop tanks abandoned by Turkish army officers

Meanwhile, Erdogan made it clear he believes rival Gulen is behind the attack.

Gulen's nonprofit organization, the Alliance for Shared Values, denies any involvement and condemned the actions of the Turkish military.

Gulen, 75, was initially a close ally of Erdogan, who rose from the mayor of Istanbul to prime minister before he became president in 2014.

But the two fell out over a massive corruption scandal in 2013 that cost the country $100billion in a campaign thought to be initiated by Gulen's followers against Erdogan's closest allies.

Trained as an imam, Fethullah Gulen gained notice in Turkey some 50 years ago, promoting a philosophy that blended a mystical form of Islam with staunch advocacy of democracy, education, science and interfaith dialogue.

Erdogan has long accused Gulen of plotting to overthrow the officially secular government from a gated 26-acre compound in Pennsylvania's Pocono Mountains, which has a population of about 1,100.

The President, who was on vacation in the resort town of Marmaris when the coup began, issued a statement to CNN tonight referring to a 'parallel structure' behind the coup, a reference to Gulen's followers.

Supporters of Recep Tayyip Erdogan ambush a tank as it attempts to seize ground in Turkey's capital city of Ankara

One man throws himself onto the front of a moving tank. Supporters played a key role in stopping the military from taking control

Turkish civilians throw a tarpaulin over a tank to stop it from seizing control of key locations in Ankara

Pictured: Groups of protesters take to the streets of Ankara and face down soldiers rolling through the city in tanks