Pakistan lawmakers are set to choose opposition leader Shehbaz Sharif as the next prime minister after former cricket star Imran Khan was ousted in a no-confidence vote that ended his four-year run.

A united opposition bloc cobbled together 174 lawmakers to vote against Khan — two more than required to remove him from office — after midnight on Sunday in Islamabad. Parliament convenes again on Monday to pick his replacement, after Khan rallied supporters in cities across the nation on Sunday night against what he called "U.S.-backed regime change.”

Khan’s ouster came after a falling-out with Pakistan’s army over a range of issues, including interference in military promotions, his rocky relationship with the U.S. and management of the economy that saw inflation rise at the second fastest pace in Asia. Pakistan’s military has ruled the country for almost half of its 75-year history, and no prime minister has completed a full term in that time.