Stop me if you’ve heard this one before: a fairly small, radical–apocalyptic, even–and highly militarized Islamic sect carves out a chunk of territory, including a sizable piece of Syria, in which to establish its own very political entity that could be described as expansionist, revisionist, even irredentist. They specialize in hit-and-run attacks on their neighbors that maximize civilian casualties, attacks that would certainly meet most definitions of the term “terrorism.” Their targets are chosen to shock ordinary people and to drive home the message of their esoteric interpretation of Islam–to that end, they deliberately seek to damage and destroy physical symbols of cultural and religious significance. The people unfortunate enough to find themselves captured by or otherwise living under the rule of these fanatics often wind up enslaved. Recognized by almost none of its neighbors and opposed by nearly all of them, their emirate nevertheless survives far longer than it probably should, and the fanatics themselves deal out considerable pain and suffering to those neighbors along the way.
I’m talking, of course, about the Qarmatians (or Qarmathians if you prefer; in Arabic they’re the Qaramitah), the Ismaʿili Shiʿa movement that ruled a big chunk of the Arabian peninsula, centered in Bahrayn (the historical term for eastern Arabia, which I’m calling “Bahrayn” to distinguish it from the modern island nation of Bahrain, even though in Arabic they’re the same word), from the tail end of the 9th century through the middle of the 11th century. It’s a good thing we don’t have to deal with anything like that nowadays, am I right?
I don’t want to go too far down a rabbit hole here, but you need to know a little bit about the Qarmatians before we get to today’s topic, the Battle of Hama.
If you know early Shiʿa history, and you should, then you know that the Ismaʿilis were the branch of Shiʿa who believed that the Imam Jaʿfar al-Sadiq had designated his eldest son, Ismaʿil, as his heir, and that this designation was binding even though Ismaʿil unfortunately (parents burying their children and all) died before his father did. They believed that Ismaʿil’s designation passed to his oldest son, Muhammad, who died in 813. Or did he? Most (though not all, as we’ll see) of his followers believed that Muhammad did not die but was in fact “occulted,” or placed in a kind of divine suspended animation, whence he would return at the End of Days as the promised Mahdi (the guy who redeems the faithful and defeats Evil in advance of Judgment Day). This is more or less what Imamiyah Shiʿism (the largest Shiʿa branch nowadays and the one prevalent in Iran) teaches about its 12th and final imam, Muhammad al-Mahdi, who–assuming he was a real person to begin with, we can’t be entirely sure–disappeared in 874 at the age of five.
These “Ismaʿilis” gained a number of followers in places like Kufa, Iraq; Salamiyah, Syria; and Bahrayn, owing to their very enthusiastic proselytizing effort, known as the daʿwah (literally “invitation,” but basically missionary work). Sometime in the 870s, they converted a man named Hamdan Qarmat, who rose to become one of the leaders of the community at Kufa and was able to spread the message into southern Iran and even as far as Central Asia. The Ismaʿilis themselves split several times, actually, but the split that concerns us took place in 899, when the Ismaʿili leadership at Salamiyah declared that, hey, as it turns out, Muhammad b. Ismaʿil did actually die in 813, and he’s not actually the Mahdi, and wouldn’t you know, there have been imams living on the down-low (due to threats from the Abbasid authorities) ever since, starting with Muhammad’s son Ahmad al-Wafi.
Hamdan Qarmat immediately broke with the Salamiyah leadership over this issue, but he had a sudden, shall we say, “change of heart,” after the Salamiyah group murdered his brother in-law. He became one of the chief missionaries on behalf of Abdullah al-Mahdi Billah, Muhammad b. Ismaʿil’s great-great grandson (or so he claimed, anyway), who was now calling himself the current, very much living, imam. Al-Mahdi would eventually found the Fatimid Caliphate, but that’s not our focus here.
Most of Hamdan’s followers didn’t share his new insight (presumably all of their in-laws were as yet unmurdered), and they continued to be called Qarmatians even though they’d lost the guy who gave them that name. Their origins are traced to this 899 schism, even though there’s broad continuity between the post-899 Qarmatians and the pre-schismatic Ismaʿili community–if anything it was the Fatimids, who suddenly decided that Muhammad b. Ismaʿil wasn’t the final imam, who were really breaking with tradition. But the Fatimids had a more successful run, so its the Qarmatians who usually get portrayed as schismatic. History, winners, etc.
The Qarmatians based their community in Bahrayn and had a pretty long run there, as I wrote above. There are lots of interesting Qarmatian stories we could cover, like the time they sacked Mecca in 930 and stole the Black Stone from the Kaaba, but, like the rise of the Fatimids, that’s also not today’s topic. Because the Qarmatians were around for so long, we know that their defeat (SPOILER) in the battle we’re talking about today, the 903 Battle of Hama, a scant four years after their advent, obviously didn’t have any significant impact on their staying power. What Hama did do was to lead to the restoration of a fair part of the Abbasid Caliphate back to Abbasid control. To understand that dynamic, we need to make one more digression. Sorry.
The Abbasid Caliphate started to come apart a bit over the course of the 9th century, as various local dynasties arose to govern different parts of their empire. The Samanid Dynasty came to power in Central Asia, for example, and the Saffarids in eastern (and later central) Iran. In theory, each of these regional powers was invested by the Abbasid caliph in Baghdad to govern their territory on his behalf, and in return they paid nominal allegiance to the caliph as their overlord. Technically they were vassals, governors with an inherited title. But the truth was that by investing these dynasties, the militarily weakened Abbasids were simply recognizing reality–in most cases these dynasties would have ruled the territories under their control whether the Abbasids formalized it or not. Acknowledging them as autonomous local governors, and thereby maintaining the fiction of the almighty caliphate, was better than having them break away altogether.
But sometimes these regional dynasties didn’t play even by Baghdad’s mostly pretend rules. For example, there was the Tulunid Dynasty, which ruled Egypt and most of Syria from 868 to 905 as an independent entity. This short-lived dynasty was founded by a Turkic military commander named Ahmad b. Tulun (d. 884), who was appointed governor of Egypt by the Abbasid Caliph al-Muʿtazz in 868. By the mid-870s Ahmad had (figuratively) told the Abbasids to get bent and was ruling Egypt on his own, and by 880 he’d added most of Syria to his domain. Ibn Tulun’s son, Khumarawayh (d. 896), extended the dynasty’s territory into northern Iraq, and eventually forced the Abbasids to recognize Tulunid control over all the territories in his possession.
Now we come back to the Qarmatians, whose first priority seems to have been regaining the foothold in Syria that they lost when the schism left Salamiyah in the hands of the other Ismaʿili branch. But getting from Bahrayn into Syria, and then staying there, meant encountering, and therefore defeating, the Tulunids. They were successful, establishing a foothold at Palmyra and ultimately forcing Abdullah al-Mahdi Billah to hightail it to North Africa, where, again, he would found his Fatimid Caliphate in 909. From Palmyra, the Qarmatians repeatedly raided Tulunid territory–Hama, Homs, and coastal areas in modern-day Lebanon, for example–and the Tulunids seemed completely unable to do anything to stop them. It occurred to the new (as of 902) Abbasid Caliph, al-Muktafi (d. 908) that perhaps this sign of Tulunid weakness offered an opening for the Abbasids to deal a blow not only to the Qarmatians, but also to those damn splitters, the Tulunids. In a major break with recent caliphal tradition, al-Muktafi led his army into the field personally…but only as far as Raqqa, where he turned command over to his top general, Muhammad b. Sulayman.
The two armies met a short distance outside of Hama on November 29, and there doesn’t seem to have been a whole lot to the subsequent battle. I can’t even give you numbers on the size of the armies. I think it’s fair to say that the Abbasids had numerical superiority, both because this was a caliphal army facing the forces of a relatively small religious movement and because if the Abbasids had been outnumbered, you can bet the later sources would have made a big deal out of that fact and, as far as I know, they don’t. The Qarmatian flanks attacked the Abbasid flanks and were driven off, leaving the Qarmatian center to be attacked from the front and sides, and the Qarmatian forces eventually broke and fled. Many top Qarmatian commanders were killed, and several others were taken prisoner–they were sent to Baghdad and later executed.
As I noted above, Hama was at best a minor setback for the Qarmatians, whose high times were yet to come, but the Abbasid success here led directly to the collapse of the Tulunids. Already so weak that they hadn’t been able to run the Qarmatians off themselves, and then further weakened by that series of Qarmatian raids on their Syrian territory, the Tulunids put up virtually no resistance in 904, when Muhammad b. Sulayman once again led a caliphal army into Syria. The Tulunid ruler, Khumarawayh’s son Harun, was promptly assassinated by a group of his uncles, many of whom went over to the Abbasid side. Whatever resistance the Tulunids could muster formed around another of Harun’s uncles, Shayban, who nonetheless surrendered the entire Tulunid domain back to direct Abbasid control in 905, without a fight.
The Abbasids finally had a measure of power back, having restored full control over two of the caliphate’s most important provinces. They were riding high…for all of 4 decades, before an Iranian dynasty called the Buyids captured Baghdad and turned the caliphs into their puppets in 945. Egypt and Syria would subsequently fall to the Fatimids in 969 and ~977, respectively. From that point on, with rare and brief exceptions, Syria and Egypt, on the one hand, and Iraq, on the other, would be ruled by different empires until the Ottomans united them again in the middle of the 16th century.