In the second half of the last century, movements across the Arab world adopted similar ideologies in their struggle to modernize their countries and resist colonialism. Commonly, these were nationalist, socialist, and secular, while pan-Arabism had a powerful appeal. Such modernizing ideas found hospitable homes in the armed services and intelligence communities of key nations, and a series of coups d'état brought nationalist movements to power in Egypt (Nasserism), and also in Ba'athist Syria and Iraq. Nationalist regimes were not necessarily anti-religious, but they had absolutely no time for any hint of political Islamism, especially when it resisted modernization.