Thailand's army declared martial law before dawn, deploying troops into the heart of Bangkok in a dramatic move it said was aimed at stabilising the country after six months of turbulent political unrest. The military, however, insisted a coup d'etat was not underway.

A Thai soldier mans a machine-gun in central BangkokReuters

The surprise operation, which places the army in charge of public security, came amid deepening uncertainty over the nation's fate and one day after the caretaker prime minister refused to step down in the face of long-running anti-government protests.

Life in the capital remained largely unaffected, with schools, businesses and tourist sites open and traffic flowing as usual.

On a major road in front of one of the country's most luxurious shopping malls, bystanders gawked at soldiers in vehicles mounted with machine-guns. The mood was not tense; passers-by stopped to take mobile phone pictures of the soldiers.

People photograph Thai Army soldiers standing guard on a city centre street after martial law was declaredGetty
Passers-by pose for pictures with Thai Army soldiers sitting in a vehicle mounted with a machine-gunAFP
thai police
Thai soldiers take up position in the middle of a main intersection in Bangkok's shopping district as martial law is declaredReuters
Thai soldiers stand in front of the National Broadcasting Services of Thailand television station in BangkokReuters
thai army chief
Thai army chief General Prayut Chan-O-Cha gives a traditional greeting to delegates prior to a meeting at the Army Club in BangkokAFP
Thai soldiers prepare to deploy around the Army Club in BangkokReuters
A Thai soldier stands outside the Government Public Relations Department after martial law was imposed in BangkokAFP
Thai soldiers take their positions in the middle of a main intersection in Bangkok's shopping districtReuters
bangkok bridge
Thai soldiers take up position on a bridge in BangkokReuters
Commuters walk past Thai Army soldiers sitting in a jeep mounted with a machine-gun as they secure a main intersection in BangkokAFP

Thailand has been gripped by sporadic political turmoil since 2006, when former prime minister Thaksin Shinawatra was toppled by a military coup.

The latest round of unrest started last November, when demonstrators took to the streets to try to oust erstwhile prime minister Yingluck Shinawatra, Thaksin's sister. Earlier this month, the Constitutional Court ousted Yingluck and nine cabinet ministers for abuse of power. But the move, which left the ruling party in charge of government, did little to resolve the conflict.

The army is seen by many as sympathetic to anti-government protesters.

The leader of the pro-government Red Shirt movement, Jatuporn Prompan, said his group could accept the imposition of martial law, but said they "won't tolerate a coup or other non-constitutional means" to grab power. Red Shirts had been massing for days on the outskirts of Bangkok, and Jatuporn said his supporters were being "surrounded."

anti tent
An anti-government protester combs his hair as the protesters get ready to march from their encampment in BangkokReuters
anti government
Anti-government protest leader Suthep Thaugsuban tours the site of a rally near the Government House in BangkokReuters
pro government
Pro-government "red shirt" supporters listen to their leader's speech inside their encampment in the suburbs of BangkokReuters
pro barbed wire
Thai soldiers man a checkpoint near pro-government "red shirt" supporters' encampment in the suburbs of BangkokReuters