After the 1970 General Elections, he became the president of Jamiat Ulema-e-Islam founded by Moulana Shabir Ahmed Usmani. And into a coalition with the National Awami Party & Pakistan Peoples Party. On March 1, 1972, he was elected as the Chief Minister of Khyber-Pakhtunkhwa. He along with his cabinet resigned in protest at the dismissal of the NAP - JUI (F) coalition government in Balochistan on 14 February 1973.