The period of the pilgrimage caused a momentary truce to all these struggles, and in Dhu ‘l-hijja, a.h. 68 (January 688), was seen the curious spectacle of four different standards planted near Mecca, belonging respectively to four chiefs, each of whom was a pretender to the empire; the standard of Abdallah b. Zobair, caliph of Mecca; that of the caliph of Damascus, Abdalmalik; that of Ali’s son Mahommed b. al-Hanafiya, Mahdi of the Shi‘ites; and that of the Kharijites, who were at that time under the command of Najda b. ‘Āmir. Such, however, was the respect inspired by the holy places, that no disorders resulted.

When, in the year (69 a.h.) 689 Abdalmalik had at last encamped at Boṭān Ḥabīb in the vicinity of Kinnesrin (Qinnasrīn),[18] with the purpose of marching against Muṣ‘ab, his cousin ‘Amr Ashdaq, to whom by the treaty of Jābia, before the battle of Merj Rāhit, the succession to Merwan had been promised, took advantage of his absence to lay claim to the supreme power, and to have himself proclaimed caliph by his partisans. Abdalmalik was obliged to retrace his steps and to lay siege to his own capital. The garrison of Damascus took fright, and deserted their posts, so that ‘Amr Ashdaq was compelled to surrender. The caliph Abdalmalik summoned him to his palace and slew him with his own hand. Abdalmalik has every claim to our esteem as one of the ablest monarchs that ever reigned, but this murder remains a lasting blot on his career.

Abdalmalik could now give his whole attention to the projected expedition against Irak. Muṣ‘ab was encamped at Bājomairā in the neighbourhood of Takrīt. But Abdalmalik’s first task was to subdue Zofar and his Qaisites at Kerkesia (Qarqīsia), and the rest of the partisans of Mokhtār at Nisibis. Meanwhile, Muṣ‘ab had to curb a violent revolt in Basra, brought about by agents of Abdalmalik, and called after a place in the city the revolt of the Jofrites. About the middle of a.d. 691 Abdalmalik at last encamped at Dair al-Jathalīq (the monastery of the Catholicus) between Maskin, not far from the site of Bagdad, and Bājomairā. Muṣ‘ab’s best troops were fighting under Mohallab against the Kharijites; many Basrians were secretly favourable to the Omayyads, nor were the Kufian soldiers to be trusted. The people of Irak had never been accustomed to discipline, and no improvement had taken place during the troubles of the last years. Abdalmalik, therefore, wrote secretly to the chiefs of Muṣ‘ab’s army, and persuaded them to desert to him, with the exception of Ibrāhīm b. Ashtar, the brave son of a brave father, who, after the fall of Mokhtār, had become a faithful supporter of Ibn Zobair. His death, in the beginning of the battle, decided the fate of Muṣ‘ab, who was slain sword in hand by a Shi‘ite of Kufa.

This victory opened the gates of Kufa to Abdalmalik, and all Irak received him with acclamation. Thence, a few days later, he sent Hajjāj b. Yusuf at the head of 2000 Syrians against Ibn Zobair in Mecca, and despatched a messenger to Tāriq b.‘Amr, who was encamped at Wādi ‘l-Qorā with 5000 men, to make himself master of Medina and thence to rejoin Hajjāj. Before the arrival of this reinforcement, Hajjāj confined himself to skirmishes, in which his soldiers always had the advantage. Then, in Dhu ‘l Qa‘da 72 (March 25th, 692) Mecca was invested. The blockade lasted more than six months, during which the city was a prey to all the horrors of siege and famine. Hajjāj had set up a balista on the hill of Abu Qobais, whence he poured on the city a hail of stones, which was suspended only in the days of the pilgrimage. Ibn Zobair employed against him Abyssinians armed with Greek-fire-tubes, who, however, quitted him soon under the pressure of famine. This at length triumphed over his last adherents. Ten thousand fighting men, and even two of the sons of the pretender (it is said, on his own advice), left the city and surrendered. Mecca being thus left without defenders, Ibn Zobair saw that ruin was inevitable. Hajjāj having promised him amnesty if he would surrender, he went to his mother Asmā, the daughter of Abu Bekr, who had reached the age of a hundred years, and asked her counsel. She answered that, if he was confident in the justice of his cause, he must die sword in hand. In embracing him for the last time, she felt the cuirass he wore and exclaimed that such a precaution was unworthy of a man resolved to die. He, therefore, took off the cuirass, and, when the Omayyad troops made their way into the city, attacked them furiously, notwithstanding his advanced age, and was slain. His head was cut off, and sent by Hajjāj to Damascus.

With Ibn Zobair perished the influence which the early companions of Mahomet had exercised over Islam. Medina and Mecca, though they continued to be the holy cities, had no longer their old political importance, which had already been shaken to its foundations by the murder of Othman and the subsequent troubles. Henceforward we shall find temporal interests, represented by Damascus, predominating over those of religion, and the centre of Islam, now permanently removed beyond the limits of Arabia, more susceptible to foreign influence, and assimilating more readily their civilizing elements. Damascus, Kufa and Basra will attract the flower of all the Moslem provinces, and thus that great intellectual, literary and scientific movement, which reached its apogee under the first Abbasid Caliphs at Bagdad, steadily becomes more marked.

After the burning of the Ka’ba during the siege of Mecca by Hosain b. Nomair, Ibn Zobair had rebuilt and enlarged the house of God. It is said that he thus carried out a design of the Prophet, which he had not ventured to undertake for fear of offending the newly converted Koreishites. Hajjāj pulled down the enlargements and restored the Ka‘ba to its old state. Meanwhile, the caliph committed to him the government of the Hejaz. The Medinians, whose loyalty was suspected, were treated by him with severity; not a few maulas (clients) were obliged to wear a leaden badge on their neck (Tabarī, ii. p. 854 seq.).

Thus the protracted war against Ibn Zobair was brought to an end; hence this year (71) also is called the “year of union” (jamā‘a). But the storms in Irak and Mesopotamia had not yet altogether subsided. The Qais could not leave unavenged the blood shed at Merj Rāhit. For about ten years the Syrian and Mesopotamian deserts were the scene of a series of raids, often marked by great cruelty, and which have been the subject of a great many poems. Abdalmalik had need of all his tact and energy to pacify ultimately the zealous sectaries, but the antagonism between Yemenites (Kalb and Azd) and Moḍarites (Qais and Tamīm) had been increased by these struggles, and even in the far east and the far west had fatal consequences.

When Abdalmalik, after a stay of forty days, returned from Irak to Syria, he left two Omayyad princes as his vicegerents in Kufa and Basra. Mohallab, who at the time of the battle of Bājomairā was in the field against the Azraqītes (Kharijites), and had put himself at the disposal of the caliph, had orders to carry on the war. But the two princes proved unequal to their task and did not support Mohallab sufficiently, so that the Kharijites gained more than one victory. Abdalmalik in alarm made Hajjāj governor of Irak with the most extensive powers. The troops of Kufa, who accompanied Mohallab in an expedition against the Kharijites, had abandoned their general and dispersed to their homes, and nothing could induce them to return to their duty. Then, in the year 75 (a.d. 694), at the moment when the people were assembled in the mosque for morning prayers, an unknown young man of insignificant appearance, with a veil over his face, ascended the pulpit. It seemed at first that he could not find his words. One of the audience, with a contemptuous remark, took a handful of pebbles to pelt him with. But he let them fall when Hajjāj lifted his veil and began to speak.

“Men of Kufa,” he said, “I see before me heads ripe for the sickle, and the reaper—I am he. It seems to me, as if I saw already the blood between your turbans and your shoulders. I am not one of those who can be frightened by inflated bags of skin, nor need any one think to squeeze me like a fig. The Prince of the Believers has spread before him the arrows of his quiver, and has tried every one of them by biting its wood. It is my wood that he has found the hardest and strongest, and I am the arrow which he shoots against you.”

At the end of this address he ordered his clerk to read the letter of the caliph. He began: “From the servant of God, Abdalmalik, Prince of the Believers, to the Moslems that are in Kufa, peace be with you.” As nobody uttered a word in reply, Hajjāj said: “Stop, boy,” and exclaimed: “The Prince of the Believers salutes you, and you do not answer his greeting! You have been but poorly taught. I will teach you afresh, unless you behave better. Read again the letter of the Prince of the Believers.” Then, as soon as he had read: “peace upon ye,” there remained not a single man in the mosque who did not respond, “and upon the Prince of the Believers be peace.” Thereupon Hajjāj ordered that every man capable of bearing arms should immediately join Mohallab in Khūzistān (Susiana), and swore that all who should be found in the town after the third day should be beheaded. This threat had its effect, and Hajjāj proceeded to Baṣra, where his presence was followed by the same results. Mohallab, reinforced by the army of Irak, at last succeeded, after a struggle of eighteen months, in subjugating the Kharijites and their caliph Qatara b. Fojā‘a, and was able at the beginning of the year 78 (a.d. 697) to return to Hajjāj at Baṣra. The latter loaded him with honours and made him governor of Khorasan, whence he directed several expeditions into Transoxiana. In the meantime Hajjāj himself had, in 695 and 696, with great difficulty suppressed Shabīb b. Yazīd at the head of the powerful tribe of Shaibān, who, himself a Kharijite, had assumed the title of Prince of the Believers, and had even succeeded in occupying Kufa. In the east the realm of Islam had been very much extended under the reign of Moawiya, when Ziyād was governor of Irak and Khorasan. Balkh and Tokhāristān, Bokhara, Samarkand and Khwarizm (modern Khiva), even Kabul and Kandahar had been subdued; but in the time of the civil war a great deal had been lost again. Now at last the task of recovering the lost districts could be resumed. When, in 697, Hajjāj gave the government of Khorasan to Mohallab, he committed that of Sijistān (Seistan) to Obaidallah b. Abi Bakra, a cousin of Ziyād. This prefect allowed himself to be enticed by Zanbīl, prince of Zabulistan, to penetrate into the country far from his base, and escaped narrowly, not without severe losses. The command over Sijistān was now given to Abdarrahman b. Ash‘ath, a descendant of the old royal family of Kinda, and a numerous army was entrusted to him, so magnificently equipped that it was called “the peacock army.” Not long after his arrival in Sijistān, Ibn Ash‘ath, exasperated by the masterful tone of Hajjāj, the plebeian, towards himself, the high-born, decided to revolt. The soldiers of Irak, who did not love the governor, and disliked the prospect of a long and difficult war far from home, eagerly accepted the proposition of returning to Irak, and even proclaimed the dethronement of Abdalmalik, in favour of Ibn Ash‘ath. The new pretender entered Fārs and Ahwāz (Susiana), and it was in this last province near Tostar (Shuster) that Hajjāj came up with him, after receiving from Syria the reinforcements which he had demanded in all haste from the caliph. Ibn Ash‘ath drove him back to Baṣra, entered the city, and then turned his arms against Kufa, of which he took possession with aid from within. Hajjāj, afraid lest his communications with Syria should be cut off, pitched his camp at Dair Qorra, eighteen miles west from Kufa towards the desert, where Mahommed, the brother of the caliph, and Abdallah, his son, brought him fresh troops. Ibn Ash‘ath encamped not far from him at Dair al-Jamājim with a far more numerous army. In great alarm Abdalmalik endeavoured to stifle the revolt by offering to dismiss Hajjāj from his post. The insurgents rejected this offer, and hostilities recommenced. At the end of three months and a half, in July 702, a decisive action took place. Victory declared for Hajjāj. Ibn Ash‘ath fled to Baṣra, where he managed to collect fresh troops; but having been again beaten in a furious battle that took place at Maskin near the Dojail, he took refuge at Ahwāz, from which he was soon driven by the troops of Hajjāj under ‘Omāra b. Tamīm. The rebel then retired to Sijistān, and afterwards sought an asylum with the king of Kabul. His partisans fled before ‘Omāra’s army and penetrated into Khorasan, where they were isarmed by the governor Yazīd, son of the celebrated Mohallab, who had died in the year 701. The pretender was betrayed by the king of Kabul and killed himself. His head was sent to Hajjāj and then to Damascus. This happened in the year 703 or 704. Yazid b. Mohallab was soon after deprived of the government of Khorasan, Hajjāj accusing him of partiality towards the rebels of Yemenite extraction. He appointed in his stead first his brother Mofaḍḍal b. Mohallab, and nine months after Qotaiba b. Moslim, who was destined in a later period to extend the sway of Islam in the east as far as China.