During Mahathir's first tenure as prime minister, Malaysia experienced a period of rapid modernization and economic growth, and his government initiated a series of bold infrastructure projects. Mahathir was a dominant political figure, winning five consecutive general elections and fending off a series of rivals for UMNO's leadership. However, his power accumulation came at the expense of judicial independence and Malaysia's royalty's traditional powers and privileges. He used the controversial Internal Security Act to detain activists, non-mainstream religious figures, and political opponents, including the deputy prime minister whom he fired in 1998, Anwar Ibrahim. Mahathir's record of curbing civil liberties and his antagonism towards Western interests and economic policy made his relationships with Western nations difficult. As prime minister, he was an advocate of third-world development and a prominent international activist.