Kevin McCarthy has been elected Speaker of the US House of Representatives after heated exchanges which almost saw fellow Republicans come to blows.
It took 15 rounds of voting for McCarthy to win the job, despite his party having a majority in the chamber.
It came after a dramatic pressure campaign played out live on the House floor as party rebel Matt Gaetz was urged to vote for McCarthy.
The Florida Congressman was among six holdouts who relented late on Friday.
Earlier, amid heated scenes in the chamber, Gaetz had almost come to blows with Rep Mike Rogers – a supporter of McCarthy. The Alabama congressman had to be physically restrained by colleagues as he bellowed and jabbed his finger at Gaetz.
The Speaker sets the House agenda and oversees legislative business. The post is second in line to the presidency after the US vice-president.
Speaking after his confirmation, McCarthy wrote on Twitter: “I hope one thing is clear after this week: I will never give up. And I will never give up for you, the American people.”
McCarthy told reporters that former President Trump had helped him get the final votes: “I don’t think anybody should doubt his influence”.
“He was with me from the beginning… he would call me and he would call others,” he said.
US President Joe Biden congratulated McCarthy for his win and said he looked forward to co-operating with the Republican Party.
“The American people expect their leaders to govern in a way that puts their needs above all else, and that is what we need to do now,” he said.
Republicans have already pledged to launch investigations into Biden’s family business dealings and administration.
In a remarkable turnaround in the 12th round of voting, McCarthy was able to persuade 14 Republican holdouts to cast their vote for him. A 15th rebel followed suit for the 13th ballot.
After the 13th ballot was adjourned, McCarthy insisted to reporters that he would “have the votes” to take the speakership on the next round.
But the California congressman was still three votes short of the 217 he needed to take the prized gavel, and in chaotic and dramatic scenes, he again failed to win on the 14th ballot.
The dissidents included members of the House Freedom Caucus, who argue that McCarthy is not conservative enough to lead them as they work to try to oppose Democratic President Joe Biden’s agenda.
McCarthy has offered various concessions to the rebels, including a seat on the influential rules committee, which sets the terms for debate on legislation in the chamber.
He also agreed to lower the threshold for triggering a vote on whether to unseat the Speaker, to only one House member, leading to the possibility that the Republican coalition could easily fracture again even after McCarthy’s victory.
As the last politician on the roll – Montana’s Ryan Zinke – voted, the House floor erupted in applause as it became clear McCarthy had finally emerged victorious.
McCarthy hugged other representatives and signed autographs, but across the room the Democrats’ side was completely silent. No democrat applauded.