(Gokhan Tan/Getty)

Here are the latest updates:

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 Show all 17 1 /17 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 In pictures: Turkey coup attempt Soldiers involved in the coup attempt surrender on Bosphorus bridge with their hands raised in Istanbul on 16 July, 2016 Gokhan Tan/Getty In pictures: Turkey coup attempt A civilian beats a soldier after troops involved in the coup surrendered on the Bosphorus Bridge in Istanbul, Turkey, 16 July, 2016 REUTERS/Murad Sezer In pictures: Turkey coup attempt Surrendered Turkish soldiers who were involved in the coup are beaten by a civilian Reuters In pictures: Turkey coup attempt Soliders involved in the coup attempt surrender on Bosphorus bridge Getty In pictures: Turkey coup attempt Supporters of Turkish President Recep Tayyip Erdogan wave flags as they capture a Turkish Army vehicle Getty In pictures: Turkey coup attempt People pose near a tank after troops involved in the coup surrendered on the Bosphorus Bridge in Istanbul, Turkey, 16 July, 2016 Reuters In pictures: Turkey coup attempt Turkish soldiers block Istanbul's Bosphorus Brigde Getty In pictures: Turkey coup attempt A Turkish military stands guard near the Taksim Square in Istanbul Reuters In pictures: Turkey coup attempt Pierre Crom/Twitter In pictures: Turkey coup attempt Turkish soldiers secure the area as supporters of Recep Tayyip Erdogan protest in Istanbul's Taksim square AP In pictures: Turkey coup attempt People demonstrate in front of the Republic Monument at the Taksim Square in Istanbul Murad Sezer/Reuters In pictures: Turkey coup attempt Turkish soldiers detain police officers during a security shutdown of the Bosphorus Bridge Reuters In pictures: Turkey coup attempt Turkish Army armoured personnel carriers in the main streets of Istanbul Getty In pictures: Turkey coup attempt Chaos reigned in Istanbul as tanks drove through the streets EPA/TOLGA BOZOGLU In pictures: Turkey coup attempt Turkish President Tayyip Erdogan speaks to media in the resort town of Marmaris Reuters In pictures: Turkey coup attempt Supporters of President Erdogan celebrate in Ankara following the suppression of the attempted coup Reuters

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."