An army group in Turkey says it has taken over the country, with soldiers at strategic points in Istanbul and jets flying low in the capital, Ankara.
It is unclear who the group is or its level of support. Some top army officials are said to be detained.
President Recep Tayyip Erdogan said he would overcome what he called an uprising by a minority.
He told CNN Turk by mobile phone the action was by a "parallel structure" that would bring the necessary response. He has used this term in the past to refer to Fethullah Gulen, a US-based Muslim cleric he accuses of fomenting unrest.
Mr Erdogan called on people to take to the streets to oppose the uprising.
He said: "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."
Mr Erdogan said he was on his way to Ankara and those involved in the action would pay a heavy price. His office said he was in a secure location.
Reports earlier on Friday said the president was on vacation in the south-western resort of Marmaris.
Supporters of Mr Erodgan turned out on Istanbul's central Taksim Square as reports of the attempted coup emerged.
There have since been reports of clashes there, with some on Twitter saying that gunfire has been heard near the square.
PM Binali Yildirim had earlier denounced an "illegal action" by a military "group", stressing it was not a coup. He said that the government remained in charge.
The military group's statement on national broadcaster TRT, read by an announcer, said that democratic and secular rule of law had been eroded by the current government. There would be new constitution, it said.
A Turkish presidential source told Reuters news agency that the statement was not authorised by the army's command.
Gunfire was also heard outside Istanbul police HQ and tanks are said to be stationed outside Istanbul airport. All flights are cancelled, reports say.
One European Union source told Reuters that the military action "looks like a relatively well-orchestrated coup by a substantial body of the military, not just a few colonels".
Visiting Moscow, US Secretary of State John Kerry said he hoped for peace and "continuity" in Turkey.
British Foreign Secretary Boris Johnson said he was "very concerned" by events.