Ernest Gellner was a major theorist of nationalism, and he suggested that modern Islamism needed to be seen through a similar lens of modernization and identity. Both nationalism and Islamism are rooted in modernization. The shift from Gemeinschaft to Gesellschaft has been occurring in the contemporary Middle East, as peasants or bedouin have left the countryside for cities such as Cairo, Amman, and Algiers.

