Here are the latest updates:
- 2,700 judges removed from duty following failed overthrow
- Death toll reaches 265 in attempt to overthrow Erdogan
- Pictures show rebel soldier 'beheaded by AKP supporters'
- Soldiers 'not aware they were part of coup attempt'
- Conspiracy theorists claim coup was faked by Erdogan
- Government 'could restore death penalty' for rebel soldiers
- Everything we know about the military coup attempt
Please allow a moment for the live blog to load
At least 265 people have been killed and over 1,400 wounded in an attempted military coup in Turkey.
Turkey's president has told the nation that his government is in charge after a coup attempt brought a night of explosions, air battles and gunfire that left dozens dead.
More than 2,800 military personnel have been detained across the country as the government cracked down on the attempted coup, the Turkish Prime Minister said. Colonels and generals implicated in the rebellion were fired and loyal troops rescued the military chief who had been taken hostage at an air base on the outskirts of Ankara.
In pictures: Turkey coup attempt
In pictures: Turkey coup attempt
Turkish President Erdogan attends the funeral service for victims of the thwarted coup in Istanbul at Fatih mosque on July 17, 2016 in Istanbul, Turkey
Burak Kara/Getty Images
Soldiers involved in the coup attempt surrender on Bosphorus bridge with their hands raised in Istanbul on 16 July, 2016
A civilian beats a soldier after troops involved in the coup surrendered on the Bosphorus Bridge in Istanbul, Turkey, 16 July, 2016
Surrendered Turkish soldiers who were involved in the coup are beaten by a civilian
Soliders involved in the coup attempt surrender on Bosphorus bridge
Supporters of Turkish President Recep Tayyip Erdogan wave flags as they capture a Turkish Army vehicle
People pose near a tank after troops involved in the coup surrendered on the Bosphorus Bridge in Istanbul, Turkey, 16 July, 2016
Turkish soldiers block Istanbul's Bosphorus Brigde
A Turkish military stands guard near the Taksim Square in Istanbul
Turkish soldiers secure the area as supporters of Recep Tayyip Erdogan protest in Istanbul's Taksim square
Turkish soldiers detain police officers during a security shutdown of the Bosphorus Bridge
Turkish Army armoured personnel carriers in the main streets of Istanbul
Chaos reigned in Istanbul as tanks drove through the streets
Turkish President Tayyip Erdogan speaks to media in the resort town of Marmaris
Supporters of President Erdogan celebrate in Ankara following the suppression of the attempted coup
General Umit Dundar, the newly appointed acting chief of the general staff, said officers from the Air Force, the military police and the armored units were mainly involved in the attempt.
Fighting continued into the early morning, with the sounds of huge blasts echoing across Istanbul and the capital, Ankara, including at least one bomb that hit the parliament complex. Television footage showed images of broken glass and other debris strewn across a lobby leading to the assembly hall.
CNN-Turk said two bombs hit near the presidential palace, killing five people and wounding a number of others.
In images broadcast on CNN-Turk, dozens of soldiers walked among tanks with their hand held up, surrendering to government forces on Istanbul's Bosporus Bridge. Discarded gear was strewn on the ground. People, some holding flags, climbed onto the tanks.
President Recep Tayyip Erdogan warned coup supporters that "they will pay a heavy price for their treason to Turkey", according to a transcript of his remarks provided by his office.
"Those who stain the military's reputation must leave. The process has started today, and it will continue just as we fight other terrorist groups."