The jihadist insurgent group ISIS, or as it now prefers to be called, the Islamic State, appears well on the road to achieving its stated goal: the restoration of the caliphate. The concept, which refers to an Islamic state presided over by a leader with both political and religious authority, dates from the various Muslim empires that followed the time of the Prophet Muhammad. From the seventh century onward, the caliph was, literally, his “successor.”

The problem with this new caliphate, which, an ISIS spokesman claimed on Sunday, had been established under Abu Bakr al-Baghdadi, an Islamist militant leader since the early days of the American occupation of Iraq, is that it is ahistorical, to say the least.

The Abbasid caliphate, for example, which ruled from 750 to 1258, was an impressively dynamic and diverse empire. Centered in Baghdad, just down the road from where ISIS is occupying large areas of Iraq, the Abbasid caliphate was centuries ahead of Mr. Baghdadi’s backward-looking cohorts. Abbasid society during its heyday thrived on multiculturalism, science, innovation, learning and culture — in sharp contrast to ISIS’ violent puritanism. The irreverent court poet of the legendary Caliph Harun al-Rashid (circa 763-809), Abu Nuwas, not only penned odes to wine, but also wrote erotic gay verse that would make a modern imam blush.

Centered on the Bayt al-Hikma, Baghdad’s “House of Wisdom,” the Abbasid caliphate produced notable advances in the sciences and mathematics. The modern scientific method itself was invented in Baghdad by Ibn al-Haytham, who has been called “the first true scientist.”