Turkish troops launched a coup Friday, with soldiers taking to the streets of Ankara and Istanbul as President Recep Tayyip Erdogan vowed the putschists would pay a "very heavy price".
Jets screeched low overhead in the capital, while citizens rushed for the safety of their homes.
AFP correspondents reported a strong explosion in Ankara just before 1:00 am (2200 GMT), though it was not immediately clear what caused the blast.
Turkey's top general Hulusi Akar was taken hostage at the military headquarters in the capital Ankara after the attempt to bring down the government, the state-run Anadolu news agency reported.
State broadcaster TRT said the military had declared martial law and a curfew, in a statement signed by a group calling itself the "Council for Peace in the Homeland".
"The power in the country has been seized in its entirety," said a military statement quoted by Turkish media.
It said the coup had been launched "to ensure and restore constitutional order, democracy, human rights and freedoms and let the supremacy of the law in the country prevail, to restore order which was disrupted".
"All our international agreements and commitments retain their validity," the statement added.
"We hope our good relations will continue with all countries in the world."
Erdogan, speaking from what a presidential source said was a secure location, urged people to take to the streets to resist the coup.
"I certainly believe that coup plotters will not succeed," he said, speaking on a mobile phone via FaceTime in his first reaction to the move by the Turkish armed forces.
"I urge the Turkish people to convene at public squares and airports. I never believed in a power higher than the power of the people."
Erdogan said he was still president and Turkey's commander in chief, promising that plotters would pay a "very heavy price".
It was earlier reported that the president was on vacation in the Mediterranean resort of Marmaris.
Television pictures showed tanks deployed outside Ataturk airport in Istanbul. Reports said that flights into the airport had been halted.
US President Barack Obama has been briefed, with US National Security Council spokesman Ned Price saying: "The president's national security team has apprised him of the unfolding situation in Turkey."
The EU called for "restraint and respect for democratic institutions" in Turkey.
Neighbouring Greece said it was following the situation closely.
- History of coups -
Turkey has a history of coups, with governments ousted on three occasions by full military coups since 1960.
However, analysts had usually assumed that Erdogan's ruling Justice and Development Party (AKP) had good relations with the military.
Earlier on Friday, security forces had partially shut down the two bridges across the Bosphorus Strait in Istanbul as military jets were heard flying low over Ankara, reports and AFP correspondents said.
The Bosphorus and Fatih bridges were closed by the gendarmerie -- a branch of the Turkish military dedicated to internal security -- for traffic travelling from Asia to Europe, NTV television said.
AFP correspondents said that Istanbul had been turned into a ghost town after the events, with people who had been outside for a Friday night rushing home for safety.
But some on the streets were hailing news of the coup.
"Now things are changing -- Turks are on fire," Fethi Karabas, a 27-year-old tour guide in Taksim Square, told AFP.
"We have hope now," he added. "Turkey has been in a very polarised state for almost 15 years now... This is the manifestation of all that anger."
Rojhat Dogru, a Turkish Kurd on holiday in Istanbul, added: "I am very happy. Erdogan is a murderer but now he is dead."
Reactions were swiftly pouring in from around the world, with Russian Foreign Minister Sergei Lavrov calling on Turkey to avoid all "bloodshed".
"Problems in Turkey need to be resolved in accordance with the constitution," Lavrov said, speaking in Moscow at a joint press conference with US Secretary of State John Kerry.
The US diplomat said he hoped for "peace and continuity" in Turkey, while a Greek government source said Prime Minister Alexis Tsipras had been "briefed by the head of secret services" about the developments.
AFP
Fri Jul 15 2016
A military tank drives past during a coup attempt at entrance to the Bosphorus bridge in Istanbul on July 16, 2016. - AFP Photo
Japanese manicurist takes on plastic pollution, one nail at a time
Before global leaders address plastic pollution, a Japanese manicurist highlights the issue by incorporating it into her nail designs.
What to watch for ahead of US presidential inauguration
Here's a timeline of events between now and inauguration day.
The battle to reduce road deaths
In Malaysia, over half a million road accidents have been recorded so far this year.
Pro-Palestinian NGOs seek court order to stop Dutch arms exports to Israel
The Dutch state, as a signatory to the 1948 Genocide Convention, has a duty to take all reasonable measures at its disposal to prevent genocide.
How quickly can Trump's Musk-led efficiency panel slash US regulations?
Moves by Trump and his appointees to eliminate existing rules will be met with legal challenges, as many progressive groups and Democratic officials have made clear.
2TM: Consultations on PTPTN loans, admission to IPTA at MOHE booth
Consultations on PTPTN loans and admission to IPTA are among services provided at the Higher Education Ministry booth.
Kampung Tanjung Kala residents affected by flooded bridge every time it rains heavily
Almost 200 residents from 60 homes in Kampung Tanjung Kala have ended up stuck when their 200-metre (m) long concrete bridge flooded.
COP29 climate summit draft proposes rich countries pay $250 billion per year
The draft finance deal criticised by both developed and developing nations.
Bomb squad sent to London's Gatwick Airport after terminal evacuation
This was following the discovery of a suspected prohibited item in luggage.
Kelantan urges caution amidst northeast monsoon rains
Kelantan has reminded the public in the state to refrain from outdoor activities with the arrival of the Northeast Monsoon season.
Former New Zealand PM Jacinda Ardern receives UN leadership award
Former New Zealand prime minister Jacinda Ardern was given a global leadership award by the United Nations Foundation.
ICC'S arrest warrants for Netanyahu, Gallant an apt decision - PM
The decision of the ICC to issue arrest warrants against Benjamin Netanyahu and Yoav Gallant is apt, said Datuk Seri Anwar Ibrahim.
KTMB provides two additional ETS trains for Christmas, school holidays
KTMB will provide two additional ETS trains for the KL Sentral-Padang Besar route and return trips in conjunction with the holidays.
BNM'S international reserves rise to USD118 bil as at Nov 15, 2024
Malaysia's international reserves rose to US$118.0 billion as at Nov 15, 2024, up from US$117.6 billion on Oct 30, 2024.
Findings by dark energy researchers back Einstein's conception of gravity
The findings announced are part of a years-long study of the history of the cosmos focusing upon dark energy.
NRES responds to Rimbawatch press release on COP29
The Ministry of Natural Resources and Environmental Sustainability (NRES) wishes to offer the following clarifications to the issues raised.
Online Safety Bill and Anti-Cyberbullying Laws must carefully balance rights and protections
The Online Safety Advocacy Group (OSAG) stands united with people in Malaysia in the fight against serious online harms.
Malaysia's inflation at 1.9 pct in Oct 2024 - DOSM
Malaysia's inflation rate for October 2024 has increased to 1.9 per cent, up from 1.8 per cent in September this year.
Saudi Arabia showcases Vision 2030 goals at Airshow China 2024
For the first time, Saudi Arabia is participating in the China International Aviation & Aerospace Exhibition held recently in Zhuhai.
King Charles' coronation cost GBP 71mil, govt accounts show
The coronation of Britain's King Charles cost taxpayers GBP72 million (US$90 million), official accounts have revealed.