The U.S. House of Representatives on Thursday voted to install Republican Representative Paul Ryan as its new speaker, replacing John Boehner following a revolt by conservative lawmakers who forced his retirement.

Republicans put up a majority of at least 218 House votes to elect Ryan, putting him in charge of legislation that moves through the 435-member chamber and next in line to the U.S. presidency after the vice president.

RELATED: House Speaker John Boehner to resign next month

Ryan won 236 votes to be elected House speaker from the 247 Republicans in the chamber, indicating that only a handful of conservative members of the party deserted the Wisconsin congressman.

His main Republican challenger, Representative Daniel Webster of Florida, received nine votes, while former Secretary of State Colin Powell received one vote.

House Democratic Leader Nancy Pelosi received 184 votes from Democrats, the minority party in the House.