He left the civil service and joined the
Pakistan Peoples Party (PPP) in 1990 to begin his political career. He was elected to the
Senate of Pakistan as a candidate of PPP from Islamabad in March 1994. He remained a member of the Senate until March 2000. He became part of the military government setup following the
1999 Pakistani coup d'état and served as Provincial Minister of Punjab for Information from 1999 to 2000. and used to criticize the
Pakistan Tehreek-e-Insaf (PTI) and its chief
Imran Khan. He joined PTI in November 2011 He received 97,933 votes and defeated Khawaja Ahmad Hassan, a candidate of the
Pakistan Muslim League (N) (PML-N). In November 2015, he resigned from the post of PTI organizer in Lahore after the party's poor performance in local government elections held in October 2015. In May 2017, he became central information secretary of PTI. On 18 August,
Imran Khan formally announced his federal cabinet structure and Mahmood was named as
Minister for Federal Education and Professional Training and Minister for National History and Literary Heritage. On 20 August 2018, he was sworn in as a Federal Minister in the federal cabinet of Prime Minister Imran Khan. On 15 November 2019, he was elected as the President of
UNESCO's Education Commission. == Writings ==