Thailand's junta chief Prayuth Chan-ocha is the first civilian prime minister of the country since 2014.
Thailand's junta chief Prayuth Chan-ocha was elected late Wednesday as the kingdom's first civilian prime minister since the 2014 coup he led, in a vote by a parliament stacked with appointed allies of the conservative, arch-royalist army.
Prayuth swept aside his sole challenger – the charismatic 40-year-old billionaire Thanathorn Juangroongruangkit, who led the anti-military bloc – comfortably passing the 375-vote threshold to win a majority, with scores of votes still to be counted.
His victory was all but guaranteed by the support of the handpicked 250-member senate and the late swing of key secondary parties into an army-affiliated coalition after frantic behind-the-scenes talks.
The senate, which was appointed by the junta, includes scores of military officers and loyalists – many identifiable as they read out Prayuth's name by their short serviceman's haircuts.
His election completes a journey for the 65-year-old Prayuth from gruff army chief who toppled the last civilian government to prime minister, with claims to legitimacy after an unexpectedly strong showing from his army-linked party in a March general election.
Yet Thailand remains bitterly divided after 13 years defined by coups, violent street protests and short-lived civilian governments.
At their root is a rivalry between an arch-royalist conservative establishment and pro-democracy parties supported by many in the lower and middle class as well as young people wearied by the rule of hectoring generals.
Critics say Prayuth represents a narrow elite and lacks the vision to govern as a civilian leader, having failed as junta leader to reboot Thailand's economy, bridge its chasmic inequality or heal the ulcerous political divisions.
In a sign of the enduring chaos that trails Thai politics, Prayut did not attend the vote while Thanathorn was unable to enter the building due to legal cases against him.
Instead Thanathorn, the darling of millions of millennial voters, gave an impassioned speech near the entrance earlier in the day.
"We [Thais] are like frogs in boiling water... when we realise how quickly the world changes, it will be too late," he said, railing against the junta's handling of society and the economy.
With his withering critiques of the military and its conservative politics, Thanathorn is seen as a serious long-term threat to the establishment.
But he is besieged by court cases that could see him banned from politics and jailed despite his Future Forward party scooping up millions of votes in the March election.
Earlier, former prime minister and ex-Democrat Party leader Abhisit Vejjajiva resigned his seat in protest at his party's decision to support Prayuth.
Meanwhile, lawmakers from Pheu Thai, the political machine tied to self-exiled premier Thaksin Shinawatra, took advantage of the rare opportunity to criticise Prayuth during the televised proceedings.
Prayuth has "obsolete ideas" that will endanger the country, MP Cholnan Srikeo said.
But supporters say Prayuth is a stabilising figure who can steer Thailand away from its perennial political crises.
"I am going to vote for General Prayuth," said Mongkolkit Suksintharanon, head of junta ally the Thai Civilised Party. "Thanathorn has no experience."
The March election was cast as a choice between a tethered democracy led by a junta in civilian clothes and parties aligned with Thaksin.
But an unexpected third force emerged, led by the billionaire auto parts scion Thanathorn.
His Future Forward Party won 81 seats to become Thailand's third-largest party.
Thanathorn was put forward on Tuesday as the anti-junta bloc's only choice for premier, despite the odds against him.
Standing for prime minister was always going to be "futile," said Karen Brooks, an Asia expert at the Council on Foreign Relations.
But "it serves to further raise his profile ... and perhaps raise the cost to the military and its allies as they proceed with efforts to destroy him," she added.
Other analysts say troubles lie ahead for a military man unused to debate and consensus-building.