
McCarthy was elected on the 15th vote. He had to make a number of concessions to the Republican holdouts to win their votes (or 'present' votes in some cases).
www.cnbc.com
...A new package of proposed House rules for the 118th Congress was released just hours ahead of what many Republicans anticipated would be a final vote to elect Republican Leader Rep. Kevin McCarthy, Calif., as a new House speaker.
The posted package is the first time the public has had an opportunity to see many of the of the concessions that McCarthy has made to a far-right bloc of members who have denied him the votes needed to clinch the gavel for four day.
The 12-page package includes new rules that, if the package passes, would significantly cut the federal government budget next year, establish several new panels to investigate Republican priorities, raise the vote threshold needed to approve tax increases from a simple majority up to a super majority, and lower the threshold needed to force a no confidence vote in the speaker.
...

GOP leader McCarthy elected House Speaker on 15th vote in historic run
In a dramatic and contentious four days of voting, House GOP leader Kevin McCarthy cobbled together just enough support to win the speakership on the 15th vote.