He was elected to the Provincial Assembly of the Punjab as a candidate of Pakistan Peoples Party (PPP) from Constituency PP-46 (Faisalabad-IV) in the 1988 Pakistani general election. He received 21,761 votes and defeated Muhammad Akram Chaudhry, a candidate of Islami Jamhoori Ittehad (IJI).[2]
He ran for the seat of the Provincial Assembly of the Punjab as a candidate of Pakistan Democratic Alliance (PDA) from Constituency PP-46 (Faisalabad-IV) in 1990 Pakistani general election but was unsuccessful. He received 15,607 votes and lost the seat to Muhammad Akram Chaudhry, a candidate of IJI.[2]
He was re-elected to the Provincial Assembly of the Punjab as a candidate of PPP from Constituency PP-46 (Faisalabad-IV) in the 1993 Pakistani general election. He received 29,896 votes and defeated Muhammad Akram Chaudhry, a candidate of Pakistan Muslim League (N) (PML-N).[2]
He was re-elected to the Provincial Assembly of the Punjab as a candidate of Pakistan Muslim League (Q) (PML-Q) from Constituency PP-55 (Faisalabad-V) in the 2002 Pakistani general election. He received 24,370 votes and defeated Talib Hussain Ijaz, a candidate of PPP.[3] On 3 January 2003, he was inducted into the provincial Punjab cabinet of Chief Minister Chaudhry Pervaiz Elahi and was appointed as Provincial Minister of Punjab for Communications and Works.[4]
He was re-elected to the Provincial Assembly of the Punjab as a candidate of PML-Q from Constituency PP-55 (Faisalabad-V) in the 2008 Pakistani general election. He received 26,520 votes and defeated Rana Muhammad Idress Khan, a candidate of PML-N.[5]
In March 2008, he became leader of the opposition in the Punjab Assembly.[6] In March 2011, he resigned as leader of the opposition in the Punjab Assembly.[7]
He ran for the seat of the National Assembly of Pakistan as a candidate of PML-Q from Constituency NA-77 (Faisalabad-III) in the 2013 Pakistani general election but was unsuccessful. He received 58,680 votes and lost the seat to Muhammad Asim Nazir. In the same election, he ran for the seat of the Provincial Assembly of the Punjab as a candidate of PML-Q from Constituency PP-55 (Faisalabad-V) but was unsuccessful. He received 27,117 votes and lost the seat to Rana Shoaib Adrees Khan.[8]
He was re-elected to the Provincial Assembly of the Punjab as a candidate of Pakistan Tehreek-e-Insaf from Constituency PP-100 (Faisalabad-IV) in the 2018 Pakistani general election.[9]
On 27 August 2018, he was inducted into the provincial Punjab cabinet of Chief Minister Sardar Usman Buzdar without any ministerial portfolio.[10] On 6 September 2018, he was appointed as Provincial Minister of Punjab for public prosecution.[11]