Sunday, November 1, 2026

Caliph Motazid's Rise: Saffarid Decline, Mowaffaq's Death and Emergence of Qaramata

Amr bin Laith Saffar

Amr bin Laith Saffar had been given the Governorship of Khorasan, Sajistan and other territories by the Caliph's court as has been recorded above and Iran was also under his control. In 271 A.H., a letter of his dismissal was issued from the Caliph's court and the administrator of Isfahan, Ahmad bin Abdul Aziz bin Abl Walf, was instructed to fight Amr bin Laith and liberate the Province of Iran. They clashed and Amr bin Laith was defeated but he retained his hold on the Province Iran.

Ultimately in 274 A.H., Mowaffaq himself invaded Iran, he took the Province of Iran from Amr bin Laith and returned to Baghdad. Amr bin Laith went to Kerman and Sajistan and began to rule over Sajistan and Khorasan successfully. Then he sent gifts to the Caliph's court and enhanced his influence and in 278 A.H., he received the governorship of the territory of Mawaraunnahr, Bukhara, Samarkand etc., from the Caliph's court. Ismail bin Ahmad Samani had been ruling over Mawaraunnahr successfully. With the receipt of the governorship of Mawaraunnahr Amr bin Laith became busy collecting soldiers, arms and equipment. When Ismail bin Ahmed Samani found out, he wrote to Amr bin Laith: "I have been lying here out of the way in this border area. You have a larger country. Let me lie here and don't try to remove me." Amr bin Laith did not pay any heed to the letter and attacked him. Ismail Samani fought Amr bin Laith who was captured and sent to jail in Samarkand. In 288 A.H., Ahmed sent him to the Caliph in Baghdad. He remained there until Caliph Motazid's death. When Muktafi Billah came to power, he had him killed.

Conditions in Makkah and Madinah

In Madinah, Muhammad bin Hasan bin Jafar bin Musa Kazim and his brother Ali bin Hasan began to fight against each other. Fear of the government was non-existent. Civil wars were raging everywhere. These two brothers also created an upheaval in Madinah. Many men on both sides were killed. In 277 A.H., for one month Friday congregational prayers could not be held in Madinah. The same conditions existed in Makkah also. Yusuf bin Abu Saj was the Governor of Makkah. Ahmad bin Muhammad Tai was awarded the letter of governorship from the Caliph's court in his place.

Ahmad Tai sent his slave Badr as the leader of the pilgrimage on his behalf. Yusuf fought against him. The confrontation took place in front of the Holy Mosque around the Ka'bah. Yusuf arrested Badr. Badr's soldiers and the pilgrims launched a joint attack, arrested Yusuf, sent him to Baghdad and freed Badr. The situation everywhere was deteriorating.

Mowaffaq's Death

Caliph Motamid Billah was a nominal Caliph. His brother Mowaffaq, by virtue of his valor and wisdom, dominated over all state affairs. He was the virtual Caliph though he was not the legal Caliph. As mentioned above, Mowaffaq was also the heir apparent. Prior to his rule, the Turk chiefs had been ruling and dominating the Caliph's court. Mowaffaq had maneuvered and succeeded in breaking their power. Since he had defeated the rebel slaves, his and his son's popularity increased considerably among the Muslims. The Turk chiefs had been unable to defeat the slaves and they didn't dare to oppose him.

However, since the entire administration had totally collapsed anarchy continued to spread. The power that had held the dynasty together was now dissipated and the territories were asserting their independence and autonomy, which could not be suppressed. Yet, Mowaffaq's presence in the capital was a great source of strength and no one had the heart to challenge his leadership or expunge his name from the Friday sermon.

When Mowaffaq returned from Isfahan, he came down with the gout. He was treated by physicians but in vain. He died on 22 Saffar 278 A.H. and was buried at RaSaffah. Though Caliph Motamid was living, he was only a figurehead. Following Mowaffaq's death, the members of the government and generals of the army unanimously selected Mowaffaq's son Abul Abbas Motazid as the heir apparent and Caliph Motamid made an announcement of his succession and placed him in his father's position. Since Motazid was a very experienced and brave man, he came to dominate over all the state administration like his father and Caliph Motamid remained ineffectual.

Qaramata

In 278 A.H., a man in Kufa named Hamdan, popularly known as Qaramata, introduced a new religion. He was an extremist Shiite. He believed that the Imams were only seven in number: 1. Imam Husain (RA) 2. Ali Zianul Abedeen (RA), 3. Baqar bin Ali (RA) 4. Jafar Sadiq (RA) 5. Ismail bin Jafar 6. Muhammad bin Ismail 7. Obaidullah bin Muhammad. He called himself the deputy of Obaidullah bin Muhammad although Muhammad bin Ismail did not have a son named Obaidullah. He regarded Muhammad bin Al-Hanafia bin Ali bin Abi Talib as a prophet and added the following words to the call to prayer: "I bear witness that Muhammad bin Hanafia is a Messenger." He declared the Holy Mosque in Jerusalem as the direction for Prayer, which was made only two times a day, before sunrise and after sunset. He maintained that some verses, were revealed to Muhammad bin Al-Hanafia. Monday instead of Friday was considered the holy day of the week and he did not do any work on that day. He believed that only a few days of fasting a year was compulsory. He declared date juice unlawful while wine was made lawful. He said bathing after coition was unnecessary, (this of course is in direct contravention of Islamic law.) He made certain animals legal to be eaten while others were forbidden and declared unlawful. Whoever opposed him was declared worthy of death. He chose for his title Qaim Bil-Haq.

He talked to the chiefs of the slaves Khabbees and Bahbood about his new religion and wanted to convert them to his views but they did not attach any importance to him. Eight years after their defeat he began to propagate his beliefs in Kufa and many people began to accept them. Becoming aware of his activities the Governor of Kufa had him arrested and put in jail.

The guards of the jail were derelict in their duties and he escaped. His followers publicized the event as if he had special powers. Gradually people from a far began to talk about this religion and join it.

There are a group of people who trade guidance for falsehood and are infatuated with the blind despite their ability to see and worship that which is senseless despite their having intelligence. These people are found throughout history until our present time and they were the type of people who rushed to embrace Qaramata's new religion.

Succession of Motazid

As mentioned above after Mowaffaq's death, Motazid was made the heir apparent and he was to be the Caliph after Jafar bin Motamid. Jafar bin Motamid was first in succession to the throne and Motazid was second after him. His father Mowaffaq was also the second in succession behind Jafar but in 279 A.H. Motamid, being impressed by Motazid's power and ability gave priority to him as heir apparent over his own son Jafar and had the certificates authorizing his succession issued to the Governors in the provinces.

Defeat of the Zanj Rebellion, Saffarid Decline and Rise of the Samanids

Yaqub bin Laith Saffar's Death

Yaqub bin Laith Saffar had gained much power. Ahmad bin Abdullah Khajistani, Sayeed bin Tahir, Ali bin Yahya Kharji, Hasan bin Zaid Alawi, Rafe bin Harisimah had all made their claims to being the ruler of Khorasan, Tabristan and Iran. They had been at war with one another with no clear victor. Outwardly it seemed Yaqub bin Laith Saffar was more able, braver and more powerful and he possessed a larger territory. When Motamid realized that Syria had gone out of his control, a greater part of Iraq was under the slaves occupation and the eastern province of Khorasan and Iran had been lost, he thought it wise that the letter of Governorship of provinces like Khorasan should be given to Yaqub bin Laith from the Caliph's court. By making him legitimate, the Caliph felt that he could win his allegiance and these territories would have a proper administration. The negotiations to arrange this had already started when Yaqub bin Laith Saffar died of colic. The Caliph had sent the documents of Governorship of Iran to Yaqub Saffar but it reached him when he was dying. After his death, his brother Amr bin Laith Saffar succeeded to the throne. He sent a declaration of his obedience and allegiance to the Caliph. The Caliph was overjoyed and bestowed on him the Governorship of Khorasan, Isfahan, Sindh and Sajistan in addition to making him the Chief of Police of Baghdad and Samarra. He also sent him a royal robe. This appointment letter and the royal robe led to the recognition of his government willingly by the masses and added to his power.

Extermination of the Rebel Slaves by Mowaffaq and Motazid

The rebellion of the slaves and the repeated failure of the Caliph's armies against the slaves was not something ordinary. The slaves had been defeating the Caliph's armies and famous generals for 10 years and had destroyed the peace in the Iraqi cities. Each slave had forcibly kept 10 to 15 Alawi and Hashmi women. Their leaders named Bahbood and Khabbees used to verbally abuse the righteous Caliphs, the family of the Prophet ﷺ and his wives from their pulpits. Bahbood claimed to be omniscient and a Prophet. These slaves had killed thousands of Muslims. Their continuous victories had left the people's hearts filled with terror and they put an end to the Turk's pride of valor.

The Turk's trembled at their names. Ultimately, Caliph Motamid's brother Mowaffaq assigned his son Abul Abbas who later became Caliph with the title Motazid Billah, the expedition to fight the slaves in Rabia Thani 266 A.H. After a very fierce battle near Wasit, he defeated them. This was the first significant setback they received from the Caliph's army. After this Mowaffaq joined his son and both of them began to defeat them regularly over the next four years. The slaves' leader Khabbees was killed on 1 Saffar 270 A.H. and their reign of terror was ended. When news reached Baghdad that the slave leader was killed and the evil ended, there was a great celebration in the city. While father and son, Mowaffaq and Motazid were at war with the slaves the Khwarij had revolted in Mousil.

Masawar Khwarji, as has already been stated, had been killed in 263 A.H. His followers and disciples formed different groups and began to fight with each other until 276 A.H. No effort was made by the Caliph's court to restore peace in the region, which lets us know the condition of things in the occupied territories.

Anarchy in Khorasan

When Yaqub Saffar died, Caliph Motamid appointed his brother Amr bin Laith as Governor. However, the supporters of the Tahir dynasty were still present in Khorasan. Two of them, Abu Talha and Rafe bin Harisimah, formed groups in the name of Husain bin Tahir and established their own government. They expelled Amr bin Laith's administrators from the cities of the territory then they quarreled with each other. In the ensuing battles they used to seek help from the ruler of Bukhara, Ismail bin Ahmad bin Asad bin Samani.

Ismail Samani sometimes would help one and sometimes the other and sometimes he would help their common enemy Amr bin Laith Saffar. In brief, there was great tension in these territories. During this time, Mowaffaq deputed Muhammad bin Tahir as Governor of Khorasan. In 271 A.H. Caliph Motamid, who had given Amr bin Laith Saffar the Governorship of Khorasan, deposed Amr Saffar. Muhammad bin Tahir stayed in Baghdad. He deputed Rafe bin Harisimah as the governor of Khorasan and his deputy. This did not make any difference or put an end to the unrest and anarchy in Khorasan and its adjoining provinces.

Ahmad bin Tuloon's Death

Ahmad bin Tuloon, who has already been dealt with in detail, had Egypt and Syria under his occupation. Caliph Motamid was a Caliph in name only and his brother Mowaffaq by virtue of his wisdom and valor dominated all affairs of the Caliphate. Motamid entered into correspondence with Ahmad bin Tuloon and wanted him to go to Egypt on his behalf. This happened in 269 A.H. while Mowaffaq was engaged in war with the rebel slaves. Mowaffaq tried to make Motamid understand with the help of other leaders that supporting Ahmad bin Tuloon was not to their benefit and asked him to desist, because of this Mowaffaq became angry with Ahmad Tuloon.

Ahmad Tuloon became sick in Antakia and died and his son Khumarwaih succeeded him as the Governor of Syria and Egypt. When Mowaffaq became free from the slave rebellion in 270 A.H., he sent Ishaq bin Kandaj and Muhammad bin Abu Saj to capture Syria. These two commanders began to conquer city after city. Khumarwaih sent an army to face them. These two commanders hesitated in starting the battle and were on the defensive. In view of this, Mowaffaq sent his son Abul Abbas Motazid to Syria. Motazid pushed the Egyptian army back, conquered Damascus and continued to move ahead. Khumarwaih came to fight and Abul Abbas Motazid suffered a defeat and returned to Damascus. The inhabitants of Damascus did not open the gate of city for him. Helplessly, he went to Tartoos. Khumarwaih came to Damascus and the circulation of his coins and the Friday sermon in his name began. The inhabitants of Tartoos revolted and expelled Abul Abbas Motazid and began to read Khumarwaih's name in the Friday sermon. Abul Abbas distressed and a failure went back to Baghdad.

Situation in Tabristan: Alawi, Rafe and Saffar

It has been stated above that Hasan bin Zaid Alawi had established his government with the assistance of the inhabitants of Delam. Hasan bin Zaid died in Rajab 270 A.H. Then his brother Mohammad bin Zaid assumed power in Tabristan. In 272 A.H., a Turk administrator of Qazween invaded Tabristan with an army of 4,000 men. Muhammad bin Zaid faced him with 8,000 soldiers but was defeated and took refuge in Jurjan. However, immediately after the departure of the victorious army he re-captured Tabristan. In 275 A.H. Rafe bin Harisimah attacked Jurjan. Muhammad bin Zaid fought and after a prolonged battle lost control over Tabristan. Finally, in 283 A.H., Rafe bin Harisimah was killed while fighting with Amr bin Laith, Muhammad bin Zaid reoccupied Jurjan but Amr bin Laith Saffar dethroned him.

In 288 A.H., Ismail Samani caught Amr bin Laith Saffar and sent him to Baghdad, Muhammad bin Zaid revolted in Delam again and captured Tabristan. Then Ismail Samani sent Muhammad bin Haroon to Tabristan. Muhammad bin Zaid was killed in the encounter and his son Zaid bin Muhammad was caught and sent to jail in Bukhara.

Rise of the Samanid Dynasty: Yaqub Saffar's Defeat and Ahmad bin Tuloon's Conquests

The Birth of the Government of the Samaniites

The details about the Samani dynasty will follow later on. However, in order to remind the readers and to maintain the sequence of events it is pertinent to say something about its origin here.

Asad bin Saman was a member of a reputed and respectable family in Khorasan. He had four sons: Noah, Ahmad, Yahya and Ilyas. During the period when Mamoon Rasheed was staying in Merv, these four brothers called on him. On the suggestion of his Prime Minister Fadal bin Sahal, he appointed them to important posts. When Mamoon Rasheed proceeded to Baghdad after making Ghassan bin Abbad his deputy and the governor of Khorasan, the latter deputed Noah, Ahmad, Yahya, and Ilyas as the rulers of Samarkand, Farghana, Shash and Ashrosna, and Herat respectively.

When Mamoon Rasheed sent his famous general Tahir ibn Husain as the governor of Khorasan, he also maintained the status quo by retaining them in their posts. However, when Noah bin Asad died Tahir annexed the regions of Samarkand to Yahya and Ahmad's territories. After a short time, Ilyas died, this was during Tahir's governorship, Tahir made Ilyas's son, Abu Ishaq Muhammad, the ruler of Herat. Ahmad bin Asad had seven sons: Nasr, Yaqub, Yahya, Ismail, Abul Ashas, Ahmad Khanam, Hameed and Asad. When Ahmad bin Asad passed away, his elder son Nasr succeeded him as the Governor of Samarkand.

Nasr continued to be given the governorship of this province until the Tahir family was dethroned from Khorasan and Yaqub bin Laith Saffar captured it. In 261 A.H., Caliph Motamid Alallah sent the letter of governorship of Samarkand to Nasr directly. The Governor of this province used to receive the letter of Governorship from the Governor of Khorasan. In view of losing control over Khorasan and Yaqub Saffar gaining control over it, the Caliph thought it best that he should keep his leadership in Mawaraunnahr. Therefore, the letter was sent from the Caliph's court with the instruction that he should protect Samarkand from Yaqub Saffar. Nasr bestowed the state of Bukhara on his brother Ismail and he himself continued to rule over Samarkand. In 275 A.H., they developed resentment against each other, which escalated into a military confrontation. Ismail won and Nasr came to Ismail in chains. Ismail ran to him and kissed his feet, made him sit on the throne and promised to obey him. They reconciled and both the brothers began to govern under the name of Ismail. This same Ismail founded the government of the Samanids, which will be dealt with later on in the narrative.

The Oath for the Heir Apparent

In Shawwal 261 A.H., Caliph Motamid held open court and made the proclamation before all the courtiers that his son Jafar would be the heir apparent and after him his brother Ahmad Mowaffaq. However, in case Jafar did not reach the age of discretion, then Mowaffaq would be the Caliph first to be followed by Jafar.

Everyone took an oath on this proclamation. Jafar was given the title Mufawwad illallah, and made the Governor of Africa, Egypt, Syria, Mousil, Jazirah and Armenia. Musa bin Bagha was made his deputy. Abul Wajid was entitled as Nasir li deenillah Al-Mowaffaq and made the Governor of the Eastern countries, Baghdad, Kufa, the route to Makkah, Yemen, Kaskar, Ahwaz, Iran, Isfahan, Rayy, Zanjan and Sindh. Two different flags were made for them. After this oath, Caliph Motamid assigned the task of punishing the rebel slaves to his brother Mowaffaq.

The Battle of Saffar

Mowaffaq had hardly set out towards the rebellious slaves when the Caliph received news that Yaqub Saffar after capturing and consolidating Khorasan was marching towards the capital with his army. The Caliph's brother Mowaffaq postponed his expedition against the rebels and returned to the capital. The Caliph himself left the capital and stayed at Zafranya and sent his brother Mowaffaq to fight with Saffar. The right flank was controlled by Musa bin Bagha while the left one was commanded by Masroor Balkhi. Mowaffaq was in the middle. They fought a very fierce battle from dawn to dusk. Sometimes Saffar's army retreated and sometimes Mowaffaq's army fell back. The battle remained indecisive. Meanwhile the Caliph sent another army to aid Mowaffaq. The arrival of this fresh army spelled defeat for Yaqub bin Laith's army. Yaqub and his soldiers fled. Mowaffaq and his army looted their camp. After being defeated Saffar moved towards Khazistan and stayed at Jandisabor. Mowaffaq could not follow Saffar and went to Wasit. He fell ill and returned to Baghdad.

While Mowaffaq and Saffar were at war, Muhammad bin Wasil who had fled after loosing Iran to Saffar found an opportunity and rebelled, the field of opposition was empty and he recaptured Iran.

When Saffar went to Jundisabor after his defeat, the slaves sent a letter to Saffar, goading him to fight against the Caliph and assuring him of their help. In reply to the letter Saffar quoted following Verses of Qur'ān:

"Say O Unbelievers ........to you your religion and to me my religion." (109:1-6)

And sent an army under the command of Omar bin Sirsi to fight against Muhammad bin Wasil. Omar bin Sirsi expelled Wasil from Iran and captured it. After fighting with Yaqub Saffar, Motamid sent Musa bin Bagha to crush the rebellious slaves. Saffar sent a commander to Ahwaz. It was at Ahwaz that the three armies, the Caliph's, Saffar's and the slaves' clashed with one another. No one supported the other. Yaqub Saffar left Jundisabor and went to Sajistan after deputing Aziz bin Sirri in Nishapur and his brother Omar bin Laith in Herat. These events took place in 261 A.H.

The Conquest of Wasit

After capturing Jundisabor and deputing his administrator, Yaqub Saffar had gone to Sajistan. A commander had been sent to Ahwaz. Finally, the slaves recognized Saffar's conquest of Ahwaz, made peace with Saffar and turned to Wasit. In Wasit, a Turk commander was in charge by the order of the Caliph. The Caliph's soldiers could not stand against the slaves and they defeated him and conquered Wasit. This occurred in 263 A.H.

Ahmad bin Tuloon's occupation of Syria

In 264 A.H., a Turk named Majoor ruled over Syria. His son succeeded him after his death. Upon receipt of this news Ahmad bin Tuloon left his son Abbas as his deputy in Egypt and he went to Damascus. Majoor's son laid down his arms and Tuloon's men captured Damascus and all their territories in 264 A.H. He stayed in Syria for two years and after making satisfactory arrangements, he went back to Egypt in 266 A.H. From this point, Ahmad bin Tuloon's territory included Egypt and Syria.

Caliph Motamid Alallah: Alawi Revolts, Zanj Rebellion and Rise of Yaqub Saffar

Motamid Alallah

Motamid Alallah bin Motawakkil Alallah bin Motasim Billah bin Haroon Rasheed was born of a Roman slave girl named Fatyan. Caliph Motamid made Obaidullah bin Yahya bin Khaqan his minister. Obaidullah fell off his horse and died in 263 A.H. Then Mohammad bin Mukhallad was made the minister.

The Revolt of the Alawiites

In 256 A.H. Ibrahim bin Mohammad bin Yahya bin Abdullah bin Mohammad bin Hanafia bin Ali bin Abi Talib alias Ibn Sufi and Ali bin Zaid Alawi revolted against the Abbasid Caliphate in Egypt and Kufa respectively. Ibn Sufi suffered defeat in several battles and fled from Egypt and went to Makkah where the governor of Makkah arrested him and sent him to Ahmad bin Tuloon in Egypt. He imprisoned him and later released him. After his release, he went to Madinah where he died. Ali bin Zaid revolted in Kufa and expelled the governor and took it over. Caliph Motamid sent a commander named Shah bin Michael to Kufa but he was defeated by Ali bin Zaid. Then the Caliph sent another commander named Kajoor who defeated Ali bin Zaid. In 256 A.H. he re-attacked Ali bin Zaid which resulted in his defeat and arrest. Kajoor went to the Caliph with him. Husain bin Zaid Alawi captured Rayy and Musa bin Bagha set out to fight against him.

A man named Ali posing as an Alawiite previously drew the people's attention to himself in Bahrain and then went to Ahsa. There he posed as an Alawiite but with a different lineage. As the Alawiites were revolting in different places, he had a strong craving for power and kept drawing people's attention to himself by posing as an Alawiite but his lineage continued to be questioned everywhere proving that he was not an Alawiite. At last, in coalition with a few slaves in Baghdad he went to Basra and announced to the slaves that whoever came over to him would be freed. It attracted many of them and they rallied around him. When the masters of the slaves came to him and wanted to talk about them, he had them arrested and later Ali released them.

The number of slaves continued multiplying under Ali's flag and with fiery speeches coaxed and induced them to conquer territory with the power of their swords. He looted Qadsiya and its adjoining areas and returned to Basra. The people of Basra fought but were defeated. Following that, they fought with him several times but were defeated each time.

The slave army captured Basra. The Caliph deputed the Turk Abu Bilal with a 4,000 man army under his command to confront them. The confrontation took place near the river Riyan. The slaves defeated and chased them away. They captured not only Basra but also, Ahwaz and other places. The Turk leaders brought armies from the Caliph's court repeatedly but always returned defeated. Finally, it was Sayeed bin Saleh who crushed them and expelled them from Basra. However, on 15 Shawwal 257 A.H. they recaptured Basra and burnt it to the ground. The beautiful buildings of Basra were reduced to ashes and rubble.

Assessing the situation Caliph Motamid sent Mohammad Maroof alias Molid with a large army. The slaves came out of Basra and fought with him at the Maqul River. They put Molid's army to rout, looted their goods and killed the fleeing soldiers. Then they returned to the Maqul River. Then the Caliph deputed Mansoor bin Jafar Khayyat to tackle the problem. They came to fight under the command of their chief Ali bin Aban. There was a fierce battle. Swords dazzled until noon finally, Mansoor bin Jafar was defeated and killed.

Hearing the news, Caliph Motamid Billah recalled his brother Abu Ahmad Muwaffaq, whom he had deputed as the governor of Makkah, gave him the governorship of Egypt, Qansareen and Awasim and ordered him to fight against the slaves. Then he gave another army to Mufleh and sent him to fight them also. These two armies marched to face the slave army.

In the battle that followed, Mufleh was killed and his men began to flee. This caused anxiety and disintegration among Muwaffaq's men. At last, Muwaffaq dodged the enemy and saved his army, reorganized them, came to the Abu Khaseeb River and fought with the slaves, defeated them and captured many of them he also freed many of his men from their captivity and returned to Samarra. That defeat did not crush them completely. They rallied again and started looting, killing and plundering. They continued on their looting and killing spree in Basra and Iraq until 270 A.H.

Yaqub bin Laith's Governorship

In 256 A.H., the very first year of Motamid's accession Mohammad bin Wasil bin Ibrahim Tamimi, an Iraqi Arab living in Iran for many years, conspired with some Kurds and killed the governor of Iran, Harith bin Seema and captured it. When Yaqub bin Laith Saffar found out, he invaded Iran. Muwaffaq thought it wise to save Iran from going under Yaqub Saffar's control so he had the letters of governorship for Takharistan and Balkh in Yaqub's name written by Motamid and sent to Yaqub bin Laith with the message: "Give up the thought of Iran and establish your government in Balkh and Takharistan." Yaqub bin Laith liked the idea and he made proper arrangements for Balkh and Takharistan, reached Kabul and arrested Ratbeel. Then he dispatched gifts to the Caliph.

He visited Sajistan and began to take control of the cities of Herat and Khorasan. In 259 A.H., he captured Khorasan and expelled all the members of the Tahir family. Caliph Motamid wrote him a threatening letter saying, "Be content with the cities and the governorship of that which has been given to you. Don't capture Khorasan." But Yaqub did not pay any heed to this warning. In 260 A.H., Hasan bin Zaid Alawi took an army from Delam and invaded Yaqub. In a fierce battle Hasan bin Zaid suffered defeat and returned to Delam and Yaqub conquered Sarya and Amul then he turned to Sajistan.

The Rebellion in Mousil

Motamid deputed the Turk commander Satgeen as the governor of Mousil. The Turks started perpetrating atrocities on the inhabitants of Mousil. As a consequence of this abuse, they made Yahya bin Sulaiman their leader, beat the Turks and expelled them.

The Caliph was informed of the rebellion. Turk armies were sent. Bloody battles were waged but the result was disastrous. The Caliph's army of Turks lost and Sulaiman bin Yahya's government was established in Mousil. This happened in 260-61 A.H.

Ibn Mufleh, Ibn Wasil, Ibn Laith Saffar

When Yaqub bin Laith invaded Iran to snatch it from Mohammad bin Wasil in 256 A.H. the Caliph bestowed on him the governorship of Balkh and Takharistan and sent him back. Then he sent Abdur Rahman bin Mufleh with an army to win the province of Iran from Mohammad bin Wasil. Abdur Rahman and Mohammad began to fight.

The Caliph deputed the Turk commander Tashtamar to reinforce Abdur Rahman bin Mufleh. Tashtamar was killed and in 262 A.H. Mohammad bin Wasil captured Abdur Rahman bin Mufleh. Caliph Motamid began to correspond with Mohammad bin Wasil and initiated a move to liberate Abdur Rahman bin Mufleh. Mohammad bin Wasil did not reply to his letters but killed Abdur Rahman bin Mufleh and began to prepare to invade the city of Wasit where Musa bin Bagha was stationed with his army. When Mohammad bin Wasil proceeded towards Wasit, Ibrahim bin Seema blocked his way.

From the opposite side Abu Saj who was made governor of Iran by the Caliph sent his son-in-law Abdur Rahman to fight against

Muhammad bin Wasil and conquer Iran. Abu Saj was engaged in dealing with the slaves who had made more trouble in Basra and the surrounding area. When Abu Saj's son-in-law Abdur Rahman set out with the army, he came across the slaves' leader Ali bin Aban on the way. Ali bin Aban defeated and killed Abdur Rahman. Mohammad bin Wasil and his army were ready to confront Ibrahim bin Seema at Ahwaz. In the meantime, news arrived that Yaqub bin Laith Saffar invaded Faras, so Muhammad Wasil Tamimi, ended the confrontation with Ibrahim bin Seema and returned to Iran. Finally, Saffar and Mohammad bin Wasil fought. Ibn Wasil lost and escaped and Yaqub Saffar captured Iran. Khorasan had already come under his rule and in 261 A.H., he brought all of Iran under his control.

Struggle Against Turkish Domination, Reforms, Deposition and Martyrdom

Motaz Billah: Deposition and Death

Caliph Motaz was completely under the control of the Turk generals and whatever they wanted he would do for them. The treasury had been drained because the generals had usurped it. The soldiers demanded the Caliph to pay their salaries. The Caliph was helpless. Finally, the Turks demanded payment or else they would kill Saleh bin Waseef who they considered responsible for manipulating the Caliph.

Saleh bin Waseef was a Turk general and the Caliph was afraid of him. Seeing the problem Motaz went to his Roman mother Fatahyah for some money to solve the problem. She had large sums of money but she refused to part with any on the pretext of impending poverty. The Turks, in coalition with Saleh bin Waseef, Mohammad bin Bagha Sagheer and Babakyal, armed themselves fully and went to the door of the Caliph's palace and called Motaz. Caliph Motaz sent word, "I have taken medicine. I am too ill and weak to come out." Hearing this the Turks made a forced entry into the palace and brought out the Caliph dragging him by the legs. They beat him up, abused him and made him stand bareheaded in the sun in the courtyard. Then everybody who passed by slapped him in the face. When his humiliation went beyond limits, he was asked to abdicate. He refused. Then the chief judge Husain bin Abi Shorab and members of the government were called to witness the dismissal of the Caliph. All of them put their signatures on it and Motaz was thrown into a dungeon without food and water leading ultimately to his death. This occurred in Rajab 255 A.H. He died on 8 Shaban 255 A.H.

They brought Motaz's cousin Mohammad bin Wathiq from Baghdad and put him on the throne and bestowed on him the title of Mohtadi Billah. When Motaz's mother saw her son's arrest and humiliation, she escaped through a tunnel and went into hiding somewhere in Samarra. When Mohtadi become Caliph, she received amnesty from Saleh bin Waseef, the Caliph's deputy, and appeared in Ramadan 255 A.H. When Saleh initiated inquiries about her wealth it came to light that she was in possession of 10,300,000 dinars and gold and jewels worth more than that although Motaz had asked for only 50,000 dinars, a sum which would have been sufficient to put an end to the unrest in the army. Saleh seized all her wealth and goods and said, "This unlucky woman had her son killed for 50,000 dinars although she had millions of dinars in her possession." Then he sent her to Makkah. She lived there until Motamid succeeded to the throne. Then she went to Samarra where she died in 264 A.H.

Mohtadi Billah

Mohtadi Billah bin Wathiq Billah bin Motasim Billah bin Haroon Rasheed's real name was Mohammad and his kunya was Abu Ishaq. He was born during his grandfather Motasim Billah's period of Caliphate in 218 A.H. He became Caliph on 29 Rajab 255 A.H. at the age of 37. He was light brown in complexion, lean and thin, handsome, pious and devout, just and brave. He struggled considerably to uphold the divine commandments. Right from his accession to his death, he continuously observed the fast but he did not have any supporters. He came at such a bad time that it was difficult to restore the old Islamic honor and glory. Hashim bin Qasim says: During the month of Ramadan I was sitting near Mohtadi. It was evening. When I stood up to leave, he asked me to sit down. Then we broke the fast together and performed our prayer. When Mohtadi ordered supper, it was brought in a small willow basket. It contained thin loaves of bread, a pinch of salt in a cup, vinegar in another and olive oil in a third cup. He invited me to eat. I began to eat and thought that more food would follow so I ate slowly. Mohtadi looked at me and said, "Don't you observe the fast?" I said, "Yes" Then he said, "Will you not observe it tomorrow?" I said, "It is the month of Ramadan. Why shouldn't I observe it?" He said, "Then eat well and don't expect that more food will be coming for there is nothing here except this." I was taken by surprise and said, Amir al Mu'minin! "What is this? Allāh has given you all the delicacies, conveniences and comforts of life." He said, "Yes, that is true. However, when I reflected, I found that Omar bin Abdul Aziz among Banu Umayyah was reduced to a skeleton due to his under- eating and preoccupation with providing all facilities to his subjects. Then I turned my attention to my family and I was highly ashamed to find that we, the Banu Hashim, are quite unlike them. That is why I have adopted the way you see." He had put a strict ban on sports and entertainment, declared singing and playing musical instruments unlawful and prohibited the royal staff from being tyrannical to the people. In matters of administrative work, he was strict. He attended the court daily and handled the cases in open court. He used to do the accounting by having the accountants sit in front of him.

As has been recorded earlier, the Turks also made Mohtadi Billah Caliph. After enthroning him Saleh bin Wasif, the most influential among the Turks who dominated him most arrested and killed Ahmad bin Israil, Zaid bin Motaz Billah and Abu Nuh and confiscated their money and property. Then he arrested Hasan bin Mukhallad and seized his goods. When Caliph Mohtadi Billah came to know about these incidents, he was extremely shocked and said, "Was their arrest for an ordinary crime that they were also killed?" Following that the Caliph turned all the slave-girls and singers out of Samarra. He ordered all pets to be killed and the dogs to be set free. He made Sulaiman ibn Wahab his minister. But Saleh ibn Waseef, by virtue of his intelligence and careful planning, brought him under his control and began to rule himself. Musa bin Bagha was not present at the time of Motaz's deposition and Mohtadi's accession. He had been in Rayy. When he heard that Saleh had deposed Motaz and enthroned Mohtadi, he announced his intention of avenging Motaz's blood and marched to the capital. After he arrived, he sent a request to the Caliph for permission to come to him. Saleh went into hiding when he heard of Musa's arrival.

The Caliph permitted Musa to call on him. Soon after his arrival, he captured the Caliph. He then had him mounted on a mule and wanted to take him to the prison. Mohtadi said, "Musa! Fear Allāh, what is it that you want?" Musa said, "My intention is good. Please swear that you will not side with Saleh." The Caliph swore. Musa took the oath at his hands immediately. Then Musa began to search for Saleh. The Caliph tried to reconcile between Musa and Saleh. Consequently, Musa and his men suspected that the Caliph knew where Saleh was and that it was he who was concealing him. The Turks met at Musa bin Bagha's house for council, and thought of killing or deposing Caliph Mohtadi. The Caliph came to know about this meeting and sent for all of them to appear in his court. He himself came to the court armed and with a face that reflected great anger. He said to the Turks, "I have come to know about your council. Do not take me like other Caliphs. As long as I hold the sword in my hand, I will kill most of you. I have left my will and I am ready to kill and be killed. Remember that enmity with me will prove fatal to you. I declare on oath that I do not know where Saleh is." They were silent when they heard this and their conspiracy subsided. Then Musa proclaimed a 10,000 dinars reward for the capture of Saleh.

By chance, Saleh was located and Musa had him killed, then had his head put on a spear and taken throughout the city. Mohtadi disapproved of it but he could not do anything against the Turk's power. He was quite helpless. Finally, he wrote a letter to the Turk chief named Babakyal asking him to kill Musa. Babakyal showed the letter to Musa. Musa rushed with his army to the Caliph's palace. The people of the western territories and Farghana defended the Caliph and a number of encounters took place.

Meanwhile Babakyal was put in Mohtadi's prison as a captive. Caliph Mohtadi had him killed and his head thrown over to the Turks side. This excited them even more and the Turks who were in the Caliph's army became angry over Babakyal's murder and went over to Musa's army. During this period the Turks had besieged the Caliph, the subjects of Baghdad, Samarra and other places that had been praying for Caliph Mohtadi as they were very pleased with his justice and generosity and thought of him as a righteous Caliph. However, the consequences were quite adverse. The Caliph was defeated. The Turks arrested him and had his testicles crushed until he died.

This tragedy occurred on 14 Rajab 256 A.H. Caliph Mohtadi ran his Caliphate for 15 days short of a year. He was 38 when he lost his life. After that, the Turks took Abul Abbas Ahmad bin Motawakkil out of captivity (he was in captivity at Josaq) and put him on the throne. They took the oath for him and chose Motamid Alallah as his title.

Turkish Rebellions, Ahmad bin Tuloon and Rise of the Saffarid Dynasty

Motaz Billah

Motaz Billah bin Motawakkil Alallāh bin Motasim Billah bin Haroon Rasheed was born of a Roman salve girl named Fatahyah at Samarra in 232 A.H. He was made Caliph in Samarra in Muharram 251 A.H. After being at war with Mustayeen Billah for one year, he succeeded in forcing him to abdicate. He was very handsome. Ashnas the Turk died the same year he was enthroned. He had left 50,000 dinars, which were seized by Motaz Billah to run his administration. When Motaz Billah took the throne, he was 19. He made Ahmad bin Israil his minister and allowed Mohammad bin Abdullah bin Tahir to continue as the chief of the Baghdad Police. Mohammad bin Abdullah bin Tahir was the governor of Khorasan and his deputy lived in Khorasan and he himself lived in Baghdad. It was the Turks who had enthroned Motaz and so he was under their influence. The Khorasanis and Iraqis were in the army, which was stationed in Baghdad and Mohammad bin Abdullah used to pay their salaries.

Motaz Billah stopped their salaries and allowances. In Rajab 252 A.H., he deposed his brother Moayyad from the succession, sent him to jail and had him killed. In Ramadan 252 A.H., the army revolted because of not receiving their salaries and started to fight with Mohammad bin Abdullah bin Tahir. Mohammad bin Abdullah quelled the rebellion with great difficulty. The same year a riot break out between the Turks and the Arabs starting a civil war. The inhabitants of Baghdad sided with the Arabs but the Turks succeeded fraudulently in killing and exiling the Arabs and their leaders.

The same year Caliph Motaz Billah appointed Husain bin Abi Shorab to the post of Chief Justice. The respect for the institution of the Caliphate had disappeared, the governors of different provinces began to consider themselves independent and the Khawarij and Alawiites began to revolt. Musawir bin Abdullah bin Musawir Bijli Khwarji captured Mousil and declared his independence and all the forces sent to fight him by the Caliph were defeated and chased away.

In 253 A.H., the Turks demanded their generals Waseef, Bagha and Simataweel, to pay four months salaries in advance. They told them that the treasury was empty and payment was not possible. The Turks grew restless and the generals informed Motaz Billah. Motaz Billah himself was helpless. The Turks caught Waseef and killed him. At that time, there was a rivalry between Babakyal and Bagha Sagheer. The Caliph showed greater favor for Babakyal. Bagha made up his mind to put the Caliph to death but Motaz Billah somehow found out and Babakyal's men did away with Bagha Sagheer.

Death of Mohammad bin Abdullah bin Tahir

Mohammad bin Abdullah bin Tahir, the governor of Khorasan died in Baghdad in 253 A.H. Before his death, his will made his son Obaidullah his deputy and the governor of Khorasan. Obaidullah's brother Tahir bin Mohammad bin Abdullah bin Tahir opposed him. They fell out regarding who should lead the funeral prayer. In light of the will, Obaidullah was declared to be his father's deputy. Later Caliph Motaz Billah made another brother Sulaiman bin Abdullah bin Tahir the deputy of Mohammad bin Abdullah bin Tahir and he made Baghdad his headquarters and began to discharge his duties and manage the expeditions.

Ahmad bin Tuloon

Among the Turkish generals, Babakyal like Bagha, Waseef and Simataweel was a famous and popular leader. The same year Motaz Billah deputed Babakyal as the governor of Egypt. Babakyal deputed on his own behalf Ahmad bin Tuloon as the governor of Egypt.

Tuloon was a Turk who was captured in the battle of Farghana. He was brought up in the family of the Caliph and was counted as one of the royal slaves. His son Ahmad was brought up in the capital and was well versed in administrative affairs. When Babakyal became the governor of Egypt, he was considering that who he should assign as the governor of Egypt on his behalf. His advisors named Tuloon. He agreed and sent Tuloon to Egypt where he took over and managed the affairs there. Later, Caliph Mohtadi made the Turk Yarkooj the governor of Egypt who retained Ahmad bin Tuloon as his deputy in Egypt.

In this way Ahmad bin Tuloon gained a firm hold on Egypt as a ruler and his descendants ruled it by succession and minted their own coins there. In short, Egypt should be considered excluded from the Abbasid Caliphate from 253 A.H. or at least that the Tuloon government was founded in Egypt in 253 A.H.

Yaqub bin Laith Saffar

Both Yaqub bin Laith and his brother Amr bin Laith owned shops making copper and brass utensils in Sajistan. There were revolts in several places following the weakening of the Caliphate and the Khwarij also revolted. The Alawiites supporters also came out against the Abbasids. One of them named Saleh bin Nasr Kanani took up arms. A group of the wealthy, noblemen and common masses collected around him. Yaqub bin Laith also joined them. Saleh fought and somehow captured Sajistan and forced the members of the Tahir dynasty out of Sajistan. Saleh died after this victory. Dirham bin Hasan followed as his successor. However, the governor of Khorasan captured and sent him to Baghdad. Saleh's group chose Yaqub bin Laith as its Amir. Yaqub, by virtue of his prudence and valor, completed the capture of Sajistan and expelled Mohammad bin Abdullah bin Tahir's governor of Herat, Mohammad bin Aus Ambari and took over Herat. He then began to conquer the territories of Khorasan.

Meanwhile the governor of Iran, Ali bin Husain bin Shibil, wanted to conquer Kerman. Yaqub bin Laith also wanted control over Kerman. Yaqub bin Laith defeated and chased away Ali bin Husain's commanders and finally invaded and conquered Shiraz, the capital of Iran in 255 A.H. At once he went back to Sajistan and sent an application to the Caliph's court that read, "Great unrest was prevalent in this region. The people here have made me their Amir. I am obedient and loyal to Amir Al-Muminin." Gradually he removed the families of Tahir from Khorasan, occupied it and established his own permanent government. Tahir bin Husain's descendants had ruled over Khorasan continuously but they were always connected with the Caliph's court and one member of this family was always appointed to the administration of the Baghdad Police department.

None of the Abbasids wanted to take Khorasan from the Tahir family because they had always regarded themselves as the servants and subordinates of the Abbasid Caliphs so they continued to receive title to the governorship from them and in return, the Tahir family would pay the fixed taxes to the Caliph. However, the government which Yaqub bin Laith setup was different. It would become known as the Saffariah State and its details follow later on in the narrative.

Caliph Mustayeen Billah: Turkish Domination, Civil War and Downfall of the Abbasid Caliphate

Mustansir Billah

Mustansir Billah bin Motawakkil Alallāh bin Motasim Billah bin Haroon Rasheed's real name was Mohammad and his kunya was Abu Jafar or Abu Abdullah. He was born of a Roman African slave at Samarra in 223 A.H. After having his father Motawakkil killed, he sat on the throne on 4 Shawwal 247 A.H. He deposed both his brothers Motaz and Muayyad, who had been made heirs apparent by his father Motawakkil.

The Turks had been dominating the Caliph's court and their power was increasing day by day. They had the upper hand in all affairs. Seeing the Turks were on the ascendant and they might be harmful to him, he geared up to curtail and reduce their powers and influence.

During his six-month Caliphate, he served the Shiites considerably. He allowed them to pay visits to Imam Husain's grave and granted all type of freedom to the Alawiites. Immediately after taking over the Caliphate, he made Ahmad bin Khaseeb the prime minister and made Bagha Kabeer the commander-in-chief. It was Bagha Kabeer and the other Turks who coaxed him to remove his brothers from succession. When he wanted to reduce their power, they were scared of him because he was wise and brave and they were sure he would succeed in his aim. Therefore, they gave his physician Ibn Taifoor 30,000 dinars as a bribe to use a poisoned scalpel while letting his blood in connection with curing a disease this led to his death.

After being Caliph less than 6 months, he died on 5 Rabi-al-Awwal 248 A.H. At the point of death he said, "O my mother! I have lost both this world and the hereafter. I have killed my father and now I am going after him."

Mustayeen Billah

Mustayeen Billah bin Motasim bin Haroon Rasheed's real name was Ahmad and his kunya was Abul Abbas. He was handsome and fair complexioned. His face was pock marked and he stammered. He was born of a slave-girl named Makhariq in 221 A.H. When Muntasir died the members of the government assembled to decide on who should be chosen Caliph. Motawakkil's sons Motaz and Moayyad were present but the Turks were wary of them because they were responsible for their removal from succession. Motasim Billah's son Ahmad was enthroned and the title Mustayeen Billah was chosen for him. He was very noble, very eloquent and a literary scholar. He sat on the throne on 6 Rabia Akhir 248 A.H.

When Mustayeen Billah was being taken to the royal palace for enthronement Mohammad bin Abdullah bin Tahir and the masses protested, revolted and presented Motaz's claim to the Caliphate. The Turks fought with them and many were killed and many escaped. While the fight was going on the Turks were taking the oath for Mustayeen Billah's Caliphate. When the uproar subsided, awards and posts began to be distributed. The message was sent to Mohammad bin Abdullah bin Tahir to come and take the oath, which he did. After the completion of the oath news arrived that Tahir bin Abdullah bin Tahir, the governor of Khorasan, passed away. Caliph Mustayeen Billah appointed Mohammad bin Tahir bin Abdullah as governor there. His uncle Talha and his son Mansoor were made rulers of Nishapur, and Sarkhas and Khwarzam respectively. Then his uncle Sulaiman bin Abdullah and his cousin Abbas were sent as rulers to Tabristan and Jurjan and Talqan respectively.

In 248 A.H., Abdullah bin Yahya bin Khaqan sought permission to perform Hajj. The Caliph permitted him but immediately after his departure he assigned a commander named Abdullah bin Yahya to arrest and exile him. He caught and exiled him to Riqqah accordingly. During the same period, the Turks wanted to murder Motaz and Moayyad. Ahmad bin Khaseeb stopped the Caliph from committing this illegal act. Immediately after sitting on the throne as Caliph, Mustayeen made a Turk chief Atamish his prime minister and Ahmad bin Khaseeb his deputy. The Caliph put Motaz and Moayyad under house arrest. After a short time Ahmad bin Khaseeb was also deposed and put under surveillance. Besides becoming prime minister, Atamish was also made the ruler of Egypt and the western territories. Bagha Sagheer was made the governor of Halwan and Masabzan. Similarly, Ashnas was appointed commander in chief and put in charge of all government staff. In short, all the important posts were given to the Turks.

In 249 A.H., the Romans launched an attack on the Islamic territories. Two reputed chiefs Omar bin Abdullah and Yahya bin Yahya besides many other Muslims were martyred in the encounter.

The Baghdad people were extremely shocked about the martyrdom of these two leaders and they all started complaining about the Turks that after getting power they not only killed the Caliphs and humiliated the noblemen but also neglected to declare Jihad against the infidels. That was why the two servants of Islam met their martyrdom and the Romans felt encouraged to attack the Muslims.

These and other issues led to the rise of unrest in Baghdad and the people began to make preparations for Jihad. In other words the common people were not waiting for the military leaders and the armed forces to address the problem of the Romans they themselves formed an army for the Jihad. The Muslims from all around began to come and join the Jihad and the wealthy Muslims contributed the money necessary and a huge army left Baghdad to fight in the holy-war against the Romans. Mustayeen and the members of his government remained in Samarra as spectators and did not intervene. The Muslims who came out for Jihad reached Samarra and created trouble there. They broke open the jail and set the prisoners free. After that, the Turk chiefs Bagha, Waseef and Atamish faced these Muslims fighters with their armies. A large number of people were killed and their enthusiasm dissipated. Because Atamish had a greater hold on power and was able to utilize the royal treasury, Bagha and Waseef had enmity for him.

After Atamish, they had Abdullah bin Mohammad bin Ali made prime minister. After a short time there developed bad blood between Bagha Sagheer and Abdullah bin Mohammad bin Ali. Abdullah left Samarra out of fear of Bagha Sagheer. The Caliph appointed Mohammad bin Fadal Jurjani as the prime minister. Caliph Mustayeen was totally under the control of the Turks. Samarra was populated mostly by Turks and the Caliph was unable to get out of their control. In this situation Yahya bin Omar bin Yahya bin Husain bin Zaid Shaheed, whose kunya was Abul Husain, revolted in Kufa. Kufa was ruled over by Ayyub bin Husain. bin Musa bin Sulaiman bin Ali on behalf of Mohammad bin Abdullah bin Tahir. Abul Husain forced Ayyub out of Kufa, looted the royal treasury and occupied Kufa.

Abul Husain then left Kufa and marched towards Wasit. Mohammad bin Abdullah bin Tahir sent Husain bin Ismail bin Ibrahim bin Husain bin Mus'ab to defeat him. The confrontation took place midway to Wasit. Abul Husain defeated Husain bin Ismail and returned to Kufa. The inhabitants of Baghdad also were ready to help Husain bin Ismail, who rallied his forces and attacked Abul Husain Yahya bin Omar. Yahya came out of Kufa and fought. After a fierce battle, Abul Husain was killed and his head was severed and sent to Caliph Mustayeen at Samarra. He put it into a box and kept it in the arsenal. Abul Husain Yahya lost his life on 15 Rajab 250 A.H.

As reward for his victory over Abul Husain, Caliph Mustayeen granted estates to Mohammad bin Abdullah bin Tahir in Tabristan. One of the estates was near the border of Delam. When Mohammad bin Abdullah's ruler went to take possession, a man named Rustam opposed him. The inhabitants of Delam sided with Rustam and his two sons Mohammad and Jafar. At that time, Mohammad bin Ibrahim Alawi was present in Tabristan.

Mohammad and Jafar called on him and said, "Please stake your claim to the caliphate. We shall help you." He said, "Go to Rayy and put this request to Hasan bin Zaid bin Mohammad bin Ismail bin Hasan bin Zaid bin Hasan Sibt. He is my chief and leader." Mohammad and Jafar went to their father and briefed him about the meeting. He sent a man to Rayy. Hasan bin Zaid came to Tabristan. The people from Delam and Darban began to come and take the oath. A huge crowd collected and Hasan bin Zaid captured Tabristan, which was followed by Rayy.

Receiving this news, Mustayeen sent an army to defend Hamadan. It suffered defeat. Then Musa bin Bagha Kabeer was sent from the capital with an army. He took Tabristan from Hasan bin Zaid's control but Delam still remained under Hasan's control. Musa returned to Rayy. During these days, Caliph Mustayeen appointed Daleel bin Yaqub a Christian as his minister. After a short time, a Turk named Baghar developed a grievance against Daleel Christian. Bagha Sagheer and Waseef declared Baghar guilty in the matter. The Caliph jailed him. The Turks created an uproar and Bagha Sagheer had Baghar killed. This, far from quelling the uproar, aggravated it and the entire city of Samarra took up arms. The flags of the insurgents were visible on all sides. Seeing the danger Caliph Mustayeen, Bagha Waseef, Shahik and Ahmad bin Saleh bin Shiraz left Samarra and went to Baghdad and lodged at Mohammad bin Abdullah bin Tahir's house in Baghdad in Muharram 251 A.H. The royal offices and the whole staff followed the Caliph and went to Baghdad.

The Turks felt ashamed after the Caliph had left for Baghdad. Six Turks from Samarra called on him and entreated him saying: "Please come to Samarra. We are ashamed of our impertinent acts. We beg to be excused." Caliph Mustayeen reminded them of their disloyalties and impertinences and he refused to go to Samarra. The Turks returned to Samarra, took Motaz bin Motawakkil out of the jail and took the oath for his rule. Abu Ahmad bin Haroon Rasheed was also present there. When he was asked to take the oath, he said, "As I have taken the oath for Mustayeen and Motaz has accepted his dismissal from succession, I shall not take the oath."

Motaz left Abu Ahmad alone and did not insist on his taking the oath. Bagha Kabeer's sons Musa and Abdullah also took the oath for Motaz. Thus all those who preferred Motaz, came to Motaz at Samarra and those who preferred Mustayeen left Samarra and went to Baghdad.

The rulers and governors of the provinces also followed suit. Some joined the one and some the other. There were two Caliphs, one in Samarra and the other in Baghdad. The dynasty of Tahir and the Khorasanis were more on Mustayeen's side while all Turks and some other chiefs joined Motaz. The Caliphs continued fighting for 11 months. Both entered into correspondence with the governors of the provinces and tried to win their sympathy. This war was not confined to Samarra and Baghdad but spread to other provinces. However, the concentration was greater around Baghdad because the other areas were waiting to see the results from the capital.

Finally, in Thul Qadah 251 A.H. Mohammad bin Abdullah bin Tahir, the commander of Mustayeen's army in Baghdad, launched such a fierce attack on the Turks who were besieging Baghdad, that they were defeated and fled away. Bagha and Waseef were with Mustayeen in Baghdad. They also accompanied Mohammad bin Abdullah bin Tahir with their small army of Turks consisting of men loyal to them and were part of Mustayeen's army.

When Bagha and Waseef saw the Turks defeated and fleeing from the Khorasanis and Iraqis, their national and racial prejudice received a jolt. They separated and joined the runaway army. The Turks became encouraged with their arrival, organized and ordered their armies to return and lay siege to Baghdad again.

In Baghdad, the civilians spread the rumor that Mohammad bin Abdullah bin Tahir was deliberately putting Caliph Mustayeen into trouble which led to the loss of his enthusiasm for the struggle.

On 6 Muharram 252 A.H., Mustayeen Billah, wrote to Motaz Billah recognizing his Caliphate and renouncing his own. Caliph Motaz then entered Baghdad, put the deposed Caliph under surveillance and sent him to Wasit. Mustayeen lived there under the custody of one of Motaz's commanders for 9 months then he came back to Samarra and was slain at Caliph Motaz's suggestion.