During the 22-year term of Prime Minister MAHATHIR bin Mohamad ( 1981 - 2003 ) , Malaysia was successful in diversifying its economy from dependence on exports of raw materials to expansion in manufacturing , services , and tourism .