WASHINGTON - Republican Kevin McCarthy was elected House speaker on a historic post-midnight 15th ballot early Saturday, overcoming holdouts from his own ranks and floor tensions that boiled over after a chaotic week that tested the new GOP majority's ability to govern.
"My father always told me, it's not how you start, it's how you finish," McCarthy told cheering fellow Republicans.
Eager to confront President Joe Biden and the Democrats, he promised subpoenas and investigations. "Now the hard work begins," the California Republican declared.
Republicans roared in celebration when his victory was announced, chanting "USA! USA!"
With a speaker elected, McCarthy took the oath of office, and the House was finally able to swear in newly elected lawmakers who had been waiting all week for the chamber to formally open and the 2023-24 session to begin.
After four days of grueling ballots, McCarthy flipped more than a dozen conservative holdouts to become supporters, including the chairman of the chamber's Freedom Caucus.
He fell one vote short on the 14th ballot, and the chamber became raucous, unruly.
McCarthy strode to the back of the chamber to confront Republican Matt Gaetz, sitting with Lauren Boebert and other holdouts. Fingers were pointed, words exchanged and violence apparently just averted.
At one point, Republican Rep. Mike Rogers of Alabama, shouting, approached Gaetz before another Republican, Richard Hudson, physically pulled him back.
"Stay civil!" someone shouted.
Order restored, the Republicans fell in line to give McCarthy the post he had fought so hard to gain, House speaker, second in the line of succession to the presidency.
The few Republican holdouts began voting present, dropping the tally he needed. It was the end of the bitter standoff that had shown the strengths and fragility American democracy.
The tally was 216-212 with Democrats voting for leader Hakeem Jeffries, and six Republican holdouts to McCarthy simply voting present.
The day's stunning turn of events came after McCarthy agreed to many of the detractors' demands -- including the reinstatement of a longstanding House rule that would allow any single member to call a vote to oust him from office.
Even as McCarthy secured the votes he needs, he will emerge as a weakened speaker, having given away some powers and constantly under the threat of being booted by his detractors.
But he could also be emboldened as a survivor of one of the more brutal fights for the gavel in U.S. history. Not since the Civil War era has a speaker's vote dragged through so many rounds of voting.
The showdown that has stymied the new Congress came against the backdrop of the second anniversary of the Jan. 6, 2021, attack on the Capitol, which shook the country when a mob of then-President Donald Trump's supporters tried to stop Congress from certifying the Republican's 2020 election defeat to Biden.
At a Capitol event on Friday, some lawmakers, all but one of them Democrats, observed a moment of silence and praised officers who helped protect Congress on that day. And at the White House, Biden handed out medals to officers and others who fought the attackers.
"America is a land of laws, not chaos," he said.
At the afternoon speaker's vote, a number of Republicans tiring of the spectacle temporarily walked out when one of McCarthy's most ardent challengers Gaetz railed against the GOP leader.
Contours of a deal with conservative holdouts who have been blocking McCarthy's rise had emerged the night before after three dismal days and 11 failed votes in an intraparty standoff unseen in modern times.
One significant former holdout, Republican Scott Perry, chairman of the conservative Freedom Caucus who had been a leader of Trump's efforts to challenge the 2020 election, tweeted after his switched vote for McCarthy: "We're at a turning point."
US Representative Kevin McCarthy (R-CA) gestures in the House Chamber at the US Capitol in Washington, DC, on January 6, 2023. - Kevin McCarthy lost out in the 14th round of voting in the race to be the next speaker of the US House of Representatives
Another Republican holdout, Byron Donalds of Florida, who was repeatedly nominated as an alternative candidate for speaker, switched on Friday, too, voting for McCarthy.
Trump may have played a role in swaying some holdouts - having called into a meeting of Republican freshmen the night before, and called other members ahead of voting. He had urged Republicans to wrap up their public dispute.
As Republican Mike Garcia nominated McCarthy on Friday, he also thanked the U.S. Capitol Police who were given a standing ovation for protecting lawmakers and the legislative seat of democracy on Jan. 6.
But in nominating the Democratic leader Jeffries, Democrat Jim Clyburn recalled the horror of that day and told his colleagues: "The eyes of the country are on us today," he said.
Electing a speaker is normally an easy, joyous task for a party that has just won majority control. But not this time: About 200 Republicans have been stymied by 20 far-right colleagues who said he's not conservative enough.
The House adjourned until late in the night, giving time for last-minute negotiations and for two absent Republican colleagues time to return to Washington.
WASHINGTON, DC - JANUARY 06: U.S. Rep.-elect Marjorie Taylor Greene (R-GA) offers a phone with the initials "DT" to Rep.-elect Matt Rosendale (R-MT) in the House Chamber during the fourth day of voting for Speaker of the House at the U.S. Capitol Bui
Newly elected Wesley Hunt of Texas arrived to vote for McCarthy - to applause days after his wife had given birth to their newborn - as did Ken Buck of Colorado.
The disorganized start to the new Congress pointed to difficulties ahead with Republicans now in control of the House, much the way that some past Republican speakers, including John Boehner, had trouble leading a rebellious right flank. The result: government shutdowns, standoffs and Boehner's early retirement when conservatives threatened to oust him.
The agreement McCarthy presented to the holdouts from the Freedom Caucus and others centers around rules changes they have been seeking for months. Those changes would shrink the power of the speaker's office and give rank-and-file lawmakers more influence in drafting and passing legislation.
At the core of the emerging deal is the reinstatement of a House rule that would allow a single lawmaker to make a motion to "vacate the chair," essentially calling a vote to oust the speaker. McCarthy had resisted allowing a return to the longstanding rule that former Speaker Nancy Pelosi had done away with, because it had been held over the head of past Republican Speaker Boehner.
But it appears McCarthy had no other choice.
Other wins for the holdouts are more obscure and include provisions in the proposed deal to expand the number of seats available on the House Rules Committee, to mandate 72 hours for bills to be posted before votes and to promise to try for a constitutional amendment that would impose federal limits on the number of terms a person could serve in the House and Senate.
What started as a political novelty, the first time since 1923 a nominee had not won the gavel on the first vote, has devolved into a bitter Republican Party feud and deepening potential crisis.
Before Friday's ballots, Democratic leader Jeffries of New York had won the most votes on every ballot but also remained short of a majority. McCarthy ran second, gaining no ground.
The longest fight for the gavel started in late 1855 and dragged on for two months, with 133 ballots, during debates over slavery in the run-up to the Civil War.
AP writers Mary Clare Jalonick and Kevin Freking and video journalists Nathan Ellgren and Mike Pesoli contributed to this report.