What has happened in Turkey? The attempted coup explained
There were terrifying scenes on the streets of Turkey overnight as the country's military tried to overthrow the government.
A faction within Turkey's armed forces used tanks and helicopters in its attempt to bring down President Tayyip Erdogan.
However, they were stopped as people flooded onto the streets in support of the leader, who was democratically elected.
The death toll currently stands at 194, with over 1,100 injured in the fierce clashes in Ankara and Istanbul.
Getty 
Turkish President Recep Tayyip Erdogan is claims the coup is over
Read More
President Erdogan claims the attempted coup is now over, with more than 1,500 military personnel arrested.
However, as tensions remain high and gunshots still being heard, events could change fast.
Here we try to explain what has happened and what you need to know.
Getty ![Soldiers involved in the coup attempt surrender on Bosphorus bridge with their hands raised [JS95059037]](http://i3.mirror.co.uk/incoming/article8432441.ece/ALTERNATES/s615b/JS95059037.jpg)
Soldiers involved in the coup attempt surrender on Bosphorus bridge with their hands raised
What is a coup?
A coup is an illegal attempt to overthrow those in power by force.
It comes from the French coup d’etat, which translates as "blow of state".
Turkey has a history of military coups, but has not experienced one for nearly two decades.
Getty ![A civilian killed by Turkish soldiers lies on a ground on the Bosphorus bridge in Istanbul [JS95056579]](http://i1.mirror.co.uk/incoming/article8432308.ece/ALTERNATES/s615b/JS95056579.jpg)
A civilian killed by Turkish soldiers lies on a ground on the Bosphorus bridge in Istanbul
Getty ![Soliders involved in the coup attempt surrender on Bosphorus bridge [At-Least-90-Killed-in-Attempted-Military-Coup-in-Turkey]](http://i4.mirror.co.uk/incoming/article8432475.ece/ALTERNATES/s615b/At-Least-90-Killed-in-Attempted-Military-Coup-in-Turkey.jpg)
Soliders involved in the coup attempt surrender on Bosphorus bridge
Who is behind it?
The scale of the operation - which included the deployment of fighter jets and tanks -would suggest it was planned by senior military figures.
Elements of the Army and Air Force are involved in the coup, and it is unclear if the Navy is also behind it.
REUTERS ![Soldiers have put Ankara and other cities in lockdown [Police-officers-stand-guard-near-the-Turkish-military-headquarters-in-Ankara]](http://i4.mirror.co.uk/incoming/article8431398.ece/ALTERNATES/s615b/Police-officers-stand-guard-near-the-Turkish-military-headquarters-in-Ankara.jpg)
Soldiers have put Ankara and other cities in lockdown
Mr Erdogen has claimed that Islamic cleric Fethullah Gulen is the inspiration behind the coup.
Who is Fethullah Gulen?
Gulen, who lives in self-imposed exile in Pennsylvania, United States, once supported Mr Erdogan but became a nemesis.
Mr Erdogan has long accused the cleric and his supporters of attempting to overthrow the government.
AFP/Getty ![Turkish Muslim preacher Fethullah Gulen [JS95057112]](http://i2.mirror.co.uk/incoming/article8432732.ece/ALTERNATES/s615b/JS95057112.jpg)
Turkish Muslim preacher Fethullah Gulen
The cleric promotes a philosophy that blends a mystical form of Islam with staunch advocacy of democracy, education, science and interfaith dialogue.
That puts him at odds with Mr Erdogan, who has introduced more Islamist policies at the expense of the country's long-held secular views.
The pro-Gulen Alliance for Shared Values has said it condemned any military intervention in domestic politics.
Why did the military attempt the coup?
The government has made enemies with the military over religion.
The military in Turkey sees itself as the defender of the country's secular traditions, and generals have been critical of Mr Erdogan.
His AK Party, with roots in Islamism, has long had a strained relationship with the military and nationalists in a state that was founded on secularist principles after World War One.
Reuters ![A civilian beats a soldier after troops involved in the coup surrendered on the Bosphorus Bridge [A-civilian-beats-a-soldier-after-troops-involved-in-the-coup-surrendered-on-the-Bosphorus-Bridge-in]](http://i4.mirror.co.uk/incoming/article8432325.ece/ALTERNATES/s615b/A-civilian-beats-a-soldier-after-troops-involved-in-the-coup-surrendered-on-the-Bosphorus-Bridge-in.jpg)
A civilian beats a soldier after troops involved in the coup surrendered on the Bosphorus Bridge
CNN Turk 
Tanks on the highway in Turkey
Soldiers took control of TRT state television, which announced a countrywide curfew and martial law.
An announcer read a statement on the orders of the pro-coup faction that accused the government of eroding the democratic and secular rule of law.
What has happened on the ground?
The exact situation is unclear, but footage shows the scale of the violence as angry protesters confronted the military.
One video shows a tank running several people down, while others show intense gunfire.
Getty ![Turkish solders stay at Taksim square as people react in Istanbul [Turkish-solders-stay-at-Taksim-square-as]](http://i1.mirror.co.uk/incoming/article8432279.ece/ALTERNATES/s615b/Turkish-solders-stay-at-Taksim-square-as.jpg)
Turkish solders stay at Taksim square as people react in Istanbul
A helicopter gunship has also been filmed spraying a street with bullets as protesters run for their lives, while another video shows a tank commander being dragged from the vehicle's turret.
There were reports of explosions and the internet being cut, with the planes flying low over the Ankara.
Pictures have also emerged showing the Turkish Prime Minister’s office following an air strike.
Is the coup over?
Turkey's government claims the coup is "90 percent under control", although it admits some military commanders are still being held hostage by the plotters.
Mr Erdogan told a crowd today: "They have pointed the people's guns against the people. The president, whom 52% of the people brought to power, is in charge.
"This government brought to power by the people is in charge. They won't succeed as long as we stand against them by risking everything."
However, fighting continued this morning, with the sounds of huge blasts echoing across the capital, Ankara, and Istanbul, including at least one bomb that hit the parliament complex.
And Mr Erdogan admitted on Twitter this morning that another coup could be staged at any time.