He was a member of the parliament between 2008 to 2013 and again from 2018 until his death. He also was the Minister in the Prime Minister's Department from 2018 until 2020. He worked during the Mahathir Mohamad cabinet.