Sitiveni Rabuka has become Fiji’s 12th prime minister, ending a tense political stalemate that had gripped the small Pacific island nation in the days following an undecisive election outcome

The Fijian Parliament in the capital Suva convened on Saturday to vote in Rabuka, who is now holding the prime minister’s job for a second time.

The 74-year-old said he felt “humbled” as he made his way out of parliament after winning the nomination over incumbent Prime Minister Frank Bainimarama.

The two-time coup leader and former prime minister, Rabuka — still referred to by his nickname “Rambo” — narrowly triumphed over Bainimarama by 28 votes to 27 in a secret ballot

Bainimarama later thanked his Fiji First party and supporters, saying “this is democracy and this is my legacy”, adding that he hoped to continue in government as leader of the opposition.

Rabuka, the head of the People’s Alliance Party (PAP), won the nomination after forming a majority coalition with two other smaller parties following last week’s close and contentious election result.

He locked in the coalition deal to form a government on Friday afternoon, after successfully wooing the kingmaker Social Democratic Liberal Party (SODELPA).