The Thai parliament voted in former deputy prime minister Anutin Charnvirakul as prime minister after a court ousted his predecessor, Paetongtarn Shinawatra.

The decision came after the People’s Party said it will back tycoon Anutin Charnvirakul’s bid to form a new government.

Anutin Charnvirakul, a conservative politician, secured enough support for the job only after agreeing to a demand from the liberal opposition to call for an election in months.