The abolition of the Ottoman Caliphate left a vacuum which was filled by secular autocrats and reactionary Islamists.