Malhi was a leading member of the Muslim League and was at the forefront of the Pakistan Movement. A lifetime member of the Muslim League, he belonged to the gentry of Punjab and served as West Pakistan's Minister for Law, Education and Parliamentary Affairs in 1955.