A large number of the inhabitants of the region of northern Afghanistan accepted Islam through Umayyad missionary efforts, particularly under the reigns of Hisham ibn Abd al-Malik (caliph from 723 to 733) and Umar ibn AbdulAziz (caliph from 717 to 720). During the reign of Al-Mu'tasim Islam was generally practiced amongst most inhabitants of the region and finally under Ya'qub-i Laith Saffari, Islam was by far, the predominant religion of Kabul along with other major cities of Afghanistan. Later, the Samanids propagated Islam deep into the heart of Central Asia, as the first complete translation of the Qur'an into Persian occurred in the 9th century. Since the 9th century, Islam has dominated the country's religious landscape. Islamic leaders have entered the political sphere at various times of crisis, but rarely exercised secular authority for long. Remnants of the Hindu Shahi dynasty in Afghanistan's eastern borders were expelled by Mahmud of Ghazni during 998 and 1030.