Some 10,000 Thai protesters gathered Thursday in defiance of a sweeping crackdown after authorities moved to crush months of pro-democracy demonstrations by imposing emergency powers and rounding up leading activists.

Protesters chanted "Prayut get out!" and "Free our friends!" as they confronted police at Ratchaprasong, a busy junction in central Bangkok, despite a new decree that bans gatherings of more than four people -- aimed at quelling student-led demonstrations.

The government of Prime Minister Prayut Chan-O-Cha, a former army chief who initially took power in a 2014 coup, has been the target of the protesters, but they have also taken aim at Thailand's unassailable monarchy.

Riot police dispersed pro-democracy protesters in Bangkok
Riot police dispersed pro-democracy protesters in Bangkok AFP / Panumas SANGUANWONG

"You push us into the corner like a dog," one of the few prominent activist leaders not in custody, Panupong "Mike" Jadnok, told the crowd.

"And with our backs against the wall, we'll bite back with nothing to lose," he said.

As night fell, protesters waved their lit-up mobile phones in the air.

The emergency measures follow a major demonstration in Bangkok on Wednesday
The emergency measures follow a major demonstration in Bangkok on Wednesday AFP / Lillian SUWANRUMPHA

Thousands sat on plastic sheets on the road snacking on street food while scores more watched from overhead walkways. Many said they would return Friday evening.

After the emergency measures were announced early Thursday, riot police dispersed hundreds of protesters who camped overnight outside the prime minister's office.

Later, student leaders took to social media to urge supporters to take to the streets.

Thailand's Queen Suthida (C) and Prince Dipangkorn Rasmijoti (centre L) were in the royal motorcade
Thailand's Queen Suthida (C) and Prince Dipangkorn Rasmijoti (centre L) were in the royal motorcade AFP / Teera NOISAKRAN

Among those who turned out were high school students, who covered the ID tags on their uniforms with duct tape.

"I want democracy for my country," said Katherine, a 13-year-old attending her first protest. "I want to be a part of big change."

Police estimated 10,000 people attended the rally. Demonstrators began to disperse at 10 pm local time (1500 GMT).

Protesters have adopted the three-fingered salute, a gesture of defiance, from 'The Hunger Games'
Protesters have adopted the three-fingered salute, a gesture of defiance, from 'The Hunger Games' AFP / Panumas SANGUANWONG

"All of these people who assembled today -- their actions are against the law," deputy police spokesman Colonel Kissana Phathanacharoen told AFP.

He said it was up to the authorities on who to pursue with legal action.

Images outside Government House in Bangkok. The Thai government declared a state of emergency banning gatherings of more than four people and outlawing online posts deemed a threat to national security on Thursday in a move to end simmering pro-democracy
Images outside Government House in Bangkok. The Thai government declared a state of emergency banning gatherings of more than four people and outlawing online posts deemed a threat to national security on Thursday in a move to end simmering pro-democracy protests. AFPTV / Pitcha DANGPRASITH

Three top activists were among nearly two dozen arrested earlier Thursday, including Parit "Penguin" Chiwarak and Panusaya "Rung" Sithijirawattanakul, whose own detention was live-streamed on Facebook.

Anon Numpa, another leading activist, said he was forcibly taken by helicopter to Chiang Mai in northern Thailand "without my lawyer".

Protesters give the three-finger salute while sitting on a police vehicle
Protesters give the three-finger salute while sitting on a police vehicle AFP / Lillian SUWANRUMPHA

"This is a violation of my rights and is extremely dangerous to me," he wrote on Facebook.

It was not immediately clear how those arrested were accessing their social media accounts. By evening, Anon and Rung's Facebook profiles appeared to no longer be online.

On Wednesday, there were unprecedented scenes as protesters crowded around the royal motorcade carrying Queen Suthida and Prince Dipangkorn Rasmijoti, raising the three-fingered gesture of defiance adopted from "The Hunger Games" books and films.

The emergency measures announced Thursday also allow the seizure of "electronic communications equipment, data, and weapons suspected to cause the emergency situation", a government spokesman said in a statement.

"These are orders banning gatherings of five or more people... and banning distributing of news through electronic media that can affect national security," the spokesman said.

Overt challenges to the monarchy are unheard-of in Thailand, where the royal family's influence permeates every aspect of society.

The king spends much of his time in Europe, but has been in Thailand in recent days for an annual Buddhist ceremony and the anniversary of his father's death.

Enormously wealthy, he is supported by the powerful military -- which has long positioned itself as the defender of the monarchy -- as well as the establishment elite.

Leading opposition figure Thanathorn Juangroongruangkit warned the situation was critical and called on those arrested to be freed.

"The government must quickly find a way to respond to protesters' demands, otherwise the situation will fan out nationwide," he said.

There have been several popular uprisings in the turbulent modern history of Thailand, which has endured long stretches of political unrest and more than a dozen military coups since 1932.

In the latest protests, leaders have repeatedly said they wish only for the monarchy to adapt to modern times.

Their demands include the abolition of a strict royal defamation law -- which shields the king from criticism -- and for the monarch to stay out of politics.

Since these protests started, dozens of activists have been arrested, charged with sedition, and released on bail.

"They must face legal procedures without exception."

Meanwhile, a Change.org petition concerning the king has registered about 121,000 signatories in 24 hours, despite the Ministry of Digital Economy and Society suspending the weblink in Thailand.