BANGKOK - Thailand's military has declared martial law, saying it did so to keep "peace and order" after months of sometimes violent anti-government protests, the army chief said.

In a televised announcement early Tuesday, General Prayuth Chan-Ocha defended the move as necessary to resolve the country's political crisis.

Thai Military Declares Martial Law, Seeks 'Peace and Order'

As soldiers took up positions in key parts of Bangkok, the military denied it was staging a coup and urged rival political groups to come together and talk.

Thai Military Declares Martial Law, Seeks 'Peace and Order'

In a declaration broadcast on national television, Prayuth said the army acted over concerns that the security situation is deteriorating and to prevent violence between pro- and anti-government supporters.

Thai Military Declares Martial Law, Seeks 'Peace and Order'

“The Royal Thai Army intends to bring back peace and order to the beloved country of every Thai as soon as possible,” Prayuth said.

“We therefore ask every side and every group to stop their movement, in order to quickly enter the process and sustainably solve the country’s problem. The provisions of the Martial Law Act 1914 will be announced. We are asking the general public not to panic and still carry on their duties and work normally,” he added.

Prayuth met later Tuesday with senior officials from several government agencies. He called for talks between rival parties, but vowed martial law would remain in place until law and order is restored.

The army denies it is taking over. Several officials strongly denied a coup had taken place.

Mark Thompson, director of Southeast Asia research at City University of Hong Kong, told VOA that the military is reluctant to label its actions as a coup because it fears this could stoke further unrest.

“It is semantics, but it's an important point, because the last time the military stepped in in 2006, it didn't work. And the military is afraid that if they call it a coup and actually remove the caretaker government officially, not de facto like they are doing now, that will provoke the Red Shirts and could lead the country closer to civil war."

Justice Minister Chaikasem Nitisiri told reporters the interim government is still in charge and insists the army's move only relates to security. However, members of the caretaker government say they were not consulted before the decision to implement the martial law.

In a statement, State Department spokeswoman Jen Psaki said the U.S. is "very concerned" and is monitoring the situation. She said the U.S. expects the Thai army to honor its commitment to make the martial law a "temporary action to prevent violence, and to not undermine democratic institutions."

Panitan Wattanayagorn, a political scientist from Chulalongkorn University, said the military may be hoping to stabilize a volatile and deadlocked political climate, amid fears of violence.

"The potential violence that is looming is quite large,” Panitan said.

“These groups of people are ready to confront each other with arms. The military wants to stabilize that. But it's not going to be easy,” he said. “But of course, I think the military is determined to do that. If they are successful, then secondly you may buy time and open any space for negotiation. The question is where and what negotiation should resume?"

Bangkok has endured six months of anti-government protests pressing the government of former Prime Minister Yingluck Shinawatra to step down. A recent constitutional court found Yingluck and nine cabinet members guilty of abuse of power, which led to their resignation.

The military said the new caretaker government of Prime Minister Niwattumrong Boonsongpaisan remains in place. The army chief urged both sides of the political divide to come together and discuss a solution.

Boonsongpaisan on Tuesday called for fresh polls to be held on August 3 in a bid to end the nation's political turmoil, according to the French news agency AFP.

He told reporters that the government had written to the Thai Election Commission proposing the new date for polls and hoped to "submit a royal decree" next week for the king to endorse a new national vote.

While the Thai army largely stayed out of the political deadlock over recent months, some pro-government leaders, such as senior party member Smarn Leertwongrath, see the military as sympathetic to the demands of former lawmaker Suthep Thangsuban's anti-government protesters.

"I believe that the commander in chief of the army is on the side of Khun Suthep. Probably they want to tell the Thai people they want everyone into a situation that the political (climate) can be calm for just a while,” Smarn said.