House Speaker John Boehner was elected to his third term as the No. 1 Republican in the lower chamber, but not without resistance from more than two-dozen fellow GOP lawmakers.

Boehner collected 216 votes. Former speaker Nancy Pelosi, D-Calif., his closest rival, received 164.

Republicans needed 29 defectors to defeat Boehner. Twenty-five lawmakers did not vote for the newly elected House Speaker, the most no votes cast against a speaker in the last century. One of those members — Rep. Brian Babin of Texas — voted “present,” which lowered the threshold for the number of votes Boehner needed to win the speakership.

>>> 23 Conservative Leaders Warn Boehner Not to Punish GOP Dissenters

Of the alternatives to Boehner, Rep. Daniel Webster of Florida earned 12 votes. Three lawmakers voted for Rep. Louie Gohmert of Texas, and two cast votes for Rep. Ted Yoho of Florida.

Meet the 25 Republicans who did not vote for newly elected @SpeakerBoehner.

Rep. Jim Jordan of Ohio also won two votes, though he was not officially nominated. Nine others received votes.

Here are the 24 GOP lawmakers who did not vote for Boehner, as well as Babin.

Rep. Justin Amash, Mich. Rep. Rod Blum, Iowa Rep. Dave Brat, Va. Rep. Jim Bridenstine, Okla. Rep. Curt Clawson, Fla. Rep. Scott DesJarlais, Tenn. Rep. Jeff Duncan, S.C. Rep. Scott Garrett, N.J. Rep. Chris Gibson, N.Y. Rep. Louie Gohmert, Texas Rep. Paul Gosar, Ariz. Rep. Tim Huelskamp, Kan. Rep. Walter Jones, N.C. Rep. Steve King, Iowa Rep. Thomas Massie, Ky. Rep. Mark Meadows, N.C. Rep. Rich Nugent, Fla. Rep. Gary Palmer, Ala. Rep. Bill Posey, Fla. Rep. Scott Rigell, Va. Rep. Marlin Stutzman, Ind. Rep. Randy Weber, Texas Rep. Daniel Webster, Fla. Rep. Ted Yoho, Fla. Rep. Brian Babin, Texas

>>> John Boehner Elected to Third Term As House Speaker