as legitimate, and they reject 'Ali altogether. By the time that Ibn al-Muqaffa' wrote his political treatise early in the 'Abbasid period, the Kharijites were no longer a significant political threat, at least in the Islamic heartlands. The memory of the menace they had posed to Muslim unity and of the moral challenge generated by their pious idealism still weighed heavily on Muslim political and religious thought, however. Even if the Kharijites could no longer threaten, their ghosts still had to be answered. The Ibadis are the only Kharijite group to survive into modern times. Modern era Reaction to European colonialism In the 19th century, European colonization of the Muslim world coincided with the French conquest of Algeria (1830), the fall of the Mughal Empire in India (1857), the Russian incursions into the Caucasus (1828) and Central Asia (1830-1895), and ultimately in the 20th century with the defeat and dissolution of the Ottoman Empire (1908–1922), to which the Ottoman officer and Turkish revolutionary statesman Mustafa Kemal Atatürk had an instrumental role in ending and replacing it with the Republic of Turkey, a modern, secular democracy (see Abolition of the Caliphate, Abolition of the Ottoman sultanate, Kemalism, and Secularism in Turkey). The first Muslim reaction to European colonization was of "peasant and religious", not urban origin. "Charismatic leaders", generally members of the ulama or leaders of religious orders, launched the call for jihad and formed tribal coalitions. Sharia, in defiance of local common law, was imposed to unify tribes. Examples include Abd al-Qadir in Algeria, Muhammad Ahmad in Sudan, Shamil in the Caucasus, the Senussi in Libya and Chad, Mullah-i Lang in Afghanistan, the Akhund of Swat in India, and later, Abd al-Karim in Morocco. All these movements eventually failed "despite spectacular victories such as the massacre of the British army in Afghanistan in 1842 and the taking of Kharoum in 1885." Hussein bin Ali, the Sharif and Emir of Mecca from 1908, enthroned himself as King of the Hejaz after proclaiming the Great Arab Revolt against the Ottoman Empire, and continued to hold both of the offices of Sharif and King from 1916 to 1924. At the end of his reign he also briefly laid claim to the office of Sharifian Caliph; he was a 37th-generation direct descendant of Muhammad, as he belongs to the Hashemite family. A member of the Dhawu Awn clan (Banu Hashim) from the Qatadid emirs