Mark Drakeford is set to become Wales’ next first minister after he won the Welsh Labour leadership election.
The AM for Cardiff West gained 53.9% of the vote, but only after the contest went to a second round.
He will replace Carwyn Jones at the helm of the Welsh Government when he stands down next week.
Vaughan Gething came second with 41.4% of the overall vote after the second round, while Eluned Morgan came third.
Deputy Welsh Labour leader Carolyn Harris revealed the election result at the Cardiff Principality Stadium on Thursday, after a contest that lasted eight months.
Mr Jones announced in April he would step down by the end of 2018 – he has been in the job for nine years.
In his acceptance speech Mr Drakeford said: “The choice that I believe has been made today is a choice for a Labour Party that is ambitious for a distinctive Wales in a successful United Kingdom.
“For a Labour Party here in Wales which will do everything we can to make sure that we have a Labour government in Westminster to work with a Labour government here in Wales.”