 Shafie was also the Member of Parliament for the district of Kuala Langat, Selangor.He was in the UMNO International Relations committee.Later he was appointed as the Minister of Higher Education, Deputy Minister of Finance, and also the Parliament Secretary for the Minister of Finance.