A Thai general, police officers and local politicians were among dozens jailed for human trafficking on Wednesday, many handed decades-long sentences, at a mass trial exposing official complicity in the grim trade in Rohingya and Bangladeshi migrants.
The junta launched a crackdown in May 2015 on a network of corrupt officials and gangmasters who made millions funnelling desperate migrants through southern Thailand and onto Malaysia, holding some for ransom in jungle camps.
It unspooled a crisis across Southeast Asia as traffickers abandoned their human cargo in the camps where hundreds died from starvation and malaria, and at sea in overcrowded boats which were then "ping ponged" between Thai, Malaysian and Indonesian waters.
The most senior government figure among the 62 people convicted on Wednesday was Lieutenant-General Manas Kongpan, who received 27 years for multiple human trafficking charges and other offences.
A judge at Bangkok Criminal Court said he was also guilty of complicity in a "transnational organised crime" network and "worked with others to facilitate human trafficking".
It is extremely rare for senior military figures in Thailand to see the inside of a courtroom, let alone a jail.
Others received even more severe punishments.
One Myanmar national who helped run the jungle camps got 94 years in jail, at least 17 others got terms more than seven decades long.
Under Thai law, however, the maximum sentence a prisoner serves is 50 years.
Manas was a top figure in the security apparatus covering Thailand's south -- a key transit zone in a trafficking trail that stretched from Myanmar to Malaysia.
The court heard he received bank transfers from trafficking agents worth 14.8 million baht (S$602,340).
But the police investigation found he also used his position to guide trafficking gangs around checkpoints after their arrival on remote beaches as they headed to the jungle camps.
In 2013 he was promoted to head the Internal Security Operations Command (ISOC) for the entire south.
Current junta leader Prayut Chan-O-Cha was army chief at the time.Before the crackdown rights groups had long accused officials of ignoring -- and even conducting -- the trade in humans through Thailand's southern provinces.
The trial revealed a lattice of military, police, local political and mafia figures acting as traffickers, agents and logistics men, all soaking up cash from some of Asia's poorest migrants.
Soldiers and kingpins
Some reporting restrictions were placed by judges citing national security and Manas was allowed to give evidence behind closed doors.
Another well-connected kingpin convicted on Wednesday was Pajjuban Aungkachotephan, better known as Ko Tong or 'Big Brother Tong'.
Police accused him of using private Andaman Sea islands, close to tourist spots such as Koh Lipe, to shift boatloads of migrants to the mainland, where they were packed into lorries and taken to the fetid camps straddling the Malaysia border.
He was found guilty of human trafficking and links to organised crime with judges giving him 75 years.
Throughout the marathon sentencing hearing dozens of people, including two police officers, were convicted of various offences, ranging from guarding the squalid migrant camps to trafficking and negligence.
Some 40 defendants were acquitted including an army captain and a senior police officer while one died awaiting trial.
'Big business, big money'
Thailand's role as a key trafficking route spilled into full view after officials found dozens of shallow graves in the hidden camps dotting the steep, forested hills of the Thai-Malaysian border in May 2015.
They revealed the horrors endured by some of the migrants, who were starved and held in bamboo pens by traffickers who demanded over $1,000 (S$1,370) for their release.
The verdict is being closely-watched inside and outside Thailand.
The government is desperate to dispel the kingdom's notorious reputation for human trafficking.
Earlier on Wednesday Junta chief Prayut angrily denied the case reflected systemic corruption within the security services.
"Manas alone will not make the entire military collapse," he told reporters.
Critics say the case was prematurely concluded and describe a trial marred by witness intimidation, secret evidence hearings and restrictions on media reporting.
"We expect there are many more perpetrators out there," Amy Smith, from Fortify Rights, told AFP.
"This is a big business with big money."
The senior policeman who initially headed the investigation, Major General Paween Pongsirin, fled Thailand under threats to his life.
Days before he left, he told AFP the case had been ordered closed before he could delve any further into the complicity of officials.