Who elects the leader of the house?

Representatives who belong to the majority party in the House of Representatives can elect one of their group as Speaker.