Bangkok, Thailand (BBN)-Thailand's military has announced it is taking control of the government and has suspended the constitution.
In a TV statement, army chief Gen Prayuth Chan-ocha vowed to restore order and enact political reforms, reports BBC.
The cabinet has been told to report to the military, TV broadcasting is suspended and political gatherings are banned.
A nationwide curfew will operate from 22:00 to 05:00 local time.
The coup follows months of political turmoil in Thailand.
On Tuesday the army imposed martial law.
Talks were then held between the main political factions, but the army announced the coup on Thursday.
Political party leaders, including opposition leader Suthep Thaugsuban, were taken away from the talks venue after troops sealed off the area.
Troops have reportedly fired into the air to disperse groups of rival supporters but there are no reports of violence.
The broadcast media have been told to suspend all normal programming.
What we're hearing is that soldiers have moved rapidly to consolidate their position, moving in on the "red shirt" camp, the broad protest movement linked to the government, on the outskirts of Bangkok.
They are also moving towards the anti-government demonstrators' camp in the centre of town.
A curfew has just been declared, so the military is obviously making efforts to make sure there is no immediate response to its announcement.
Those people who voted for what is still the elected government here will feel extremely annoyed and frustrated by what has happened.
Most people are expecting the "red shirts" to rally now and are extremely concerned about the possibility of confrontation.
Gen Prayuth said he had taken over power because "of the violence in Bangkok and many parts of the country that resulted in loss of innocent lives and property, [which] was likely to escalate".
He added: "We ask the public not to panic and to carry on their lives normally."
In a later a statement read on television the military said that "in order to run the country smoothly, [it has] suspended the constitution of 2007, except for the chapter on the monarchy".
The statement said Gen Prayuth would head a ruling military body - the National Peace and Order Maintaining Council - but that the upper house of parliament and courts would continue to function.
The army has ordered acting PM Niwatthamrong Boonsongphaisan and his ministers to report to the military on Thursday "in order to keep peace and order".
The TV statement also carried a ban on "political gatherings" of more than five people, adding: "Anyone who violates the ban will be subject to a one-year jail term, 10,000 baht ($307) fine, or both."
The army has staged at least 11 coups since the end of the absolute monarchy in 1932.
YINGLUCK REMOVED
The latest unrest began in the Thai capital late last year, when then-Prime Minister Yingluck Shinawatra dissolved the lower house of parliament.
Demonstrators have blockaded several areas of Bangkok for months.
Earlier this month, a court ordered Yingluck's removal for alleged abuse of power.
Thailand has faced a power struggle since Yingluck's brother, Thaksin Shinawatra, was ousted by the military as prime minister in 2006.
Thaksin and Ms Yingluck have strong support in rural areas and among poorer voters.
Correspondents say they are hated by an urban and middle-class elite who accuse them of corruption and abuse of power.
BBN/SS/AS-22May14-7:00pm (BST)