Bangkok: Thailand’s military has seized control of the country after rival factions failed in negotiations to end six months of political turmoil — resulting in the nation’s 19th coup in 82 years.

While the head of the army, General Prayuth Chan-ocha, did not use the word “coup” in his televised statement, he said the takeover was necessary “in order for the country to return to normality quickly”. He added that the army, armed forces, air force and police would seize power as of 4.30pm local time on Thursday and would help “reform the political structure, the economy and society”.

He said: “It is necessary for the Peace and Order Maintaining Command — which includes army, navy, armed forces and police — to take control of governing the country.”

The UAE has had a travel advisory in place since early January, advising against travel to Thailand.

A Thai military spokesman also said that all radio and television stations must stop normal programming and broadcast only army-approved material.

Thursday’s sudden announcement followed an unexpected enactment of martial law just two days earlier after the military cited the need to “restore and maintain order” after six months of sometimes bloody protests that have left Thailand in an legislative paralysis.

The political fighting has also seen 28 people killed and more than 700 others injured since November when anti-government protesters began calling for the removal of the Pheu Thai government.

Rival political factions have spent the past two days at Bangkok’s Army Club, where they attempted to come to a compromise over the future of the country.

Despite various options reportedly being floated at the Prayuth-mediated talks, no agreement was arranged, although the rival leaders did tweet “selfies” of themselves smiling and laughing together at the roundtable discussions.

On Thursday afternoon, witnesses said that hundreds of extra troops arrived at the venue and took away the leader of the anti-government protests, Suthep Thaugsuban. It remained unclear who else was detained. Members of the government, opposition party, senate, election commission and pro-government forces had been attending the talks.

Local media reported that the caretaker premier Niwattumrong Boonsongpaisan’s whereabouts were unknown, although it did not seem that he had been detained. He was not part of the recent negotiations.

The military announced a curfew from 10pm-5am. National television stations were off air, although social media and the internet seemed unaffected by any censorship.

Mark Kent, the British ambassador, tweeted: “The Thai military have announced a coup. British citizens should exercise extreme caution and follow travel advice and media updates”.

Prayuth’s announcement was met with a warning by pro-government Red Shirt activists group. The United Front for Democracy against Dictatorship (UDD), who vowed “retaliation” shortly after the televised statement.

“NOW it is COUP — stand by for a retaliation from the UDD,” the group tweeted.

Soldiers later fired into the air to disperse thousands of Red Shirt activists who had gathered in Bangkok’s western outskirts.

For the past six months, protesters have taken to the streets, taken over government buildings and threatened political kidnappings in an attempt to remove the Shinawatra clan from power — a reference to former PM Thaksin Shinawatra, who was deposed by military coup in 2006 and whose party, or variations of it, have won every election in Thailand since 2001.

Thailand has seen 19 real or attempted coups since the end of absolute monarchy in 1932.

Thursday’s coup follows a softer so-called “judicial coup” this month in which Thaksin’s sister, Yingluck, was removed as prime minister after a controversial court ruling found her, and nine of her ministers, guilty of abusing their power.

Prayuth said Thursday’s announcement should not induce any kind of panic and that life would continue as normal, adding that the army would take care of the foreigners, and foreign embassies, currently in Thailand.

— With inputs from agencies