sentences:  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.The remnants of a Shahi presence in Afghanistan's eastern borders were expelled by Mahmud of Ghazni during 998 and 1030.