Thailand's parliament has chosen business tycoon Anutin Charnvirakul as the country's prime minister - the third in two years, after yet another leader was removed from office.
Paetongtarn Shinawatra, who belongs to Thailand's most powerful political dynasty, was removed by the constitutional court last week for ethical violations over her handling of the border dispute with Cambodia.
Anutin's Bhumjaithai party broke from the coalition led by the Shinawatras' Pheu Thai, and secured enough support in parliament to win the premiership.
But the uncertainty may not be over for Thailand which has seen multiple administrations deposed by court interventions and military coups in the recent past.
Anutin's rise to the premiership deals a significant blow to the Shinawatra family, which has dominated Thai politics since 2001, when Paetongtarn's father Thaksin became PM.
On Thursday night there was intense scrutiny in Thailand of a private jet carrying Thaksin out of the country.
Early on Friday he posted on social media saying that he had flown to Dubai for medical treatment and that he intends to return in time for a 9 September hearing for a court case that could put him back in jail.
His Pheu Thai party, which emerged as a major player in the 2023 election, is now on the sidelines. It had one last remaining candidate for PM, Chaikasem Nitisiri, who has little public profile and is in poor health.
In the past, the Shinawatras' populist policies gave them wide support among lower-income Thais but put them at odds with Bangkok's conservative-royalist elite.
Both Thaksin and his sister Yingluck, who served as prime minister after him, were ousted by military coups in 2006 and 2014 respectively.
Paetongtarn was the fifth Thai prime minister to be removed from office by the Constitutional Court, all of them from administrations backed by her father Thaksin.
After Anutin became PM, he must navigate the political landscape carefully given his party's limited seats and the need for coalition support.
Charnvirakul, a seasoned politician known for liberalizing marijuana laws as a health minister, now faces the challenge of leading the country through a turbulent period, with tight timelines and complicated alliances shaping his government's path.