Campaigns in Sistan and Khorasan ,
Transoxiana and
Tokharistan Ya'qub attracted the attention of an
Abbasid caliph by first battling Kharijites in his homeland of Sistan. In 864, "Yaʿqub led an expedition to
Bost against his former master Salih, and then into
ar-Rukkaj and
Zamindāvar against the local ruler there, the
Zunbil, killing him and securing an immense booty." In 870/871, Ya'qub marched against the Kharijites of
Herat, and defeated them. He then marched towards
Karukh, and defeated another Khariji leader who was named Abd al-Rahman. Ya'qub then pardoned Abd al-Rahman and made him governor of
Isfizar. His army would later march to
Ghazna,
Kabul, and
Bamyan, conquering these territories from the
Hindu Shahi, and appointing Muslim governors. From there they moved to north of the
Hindu Kush and by 870 AD the whole of Khorasan was brought under their control. The
Panjshir Valley was now under Ya'qub's control, which made him able to mint silver coins. In 873, Ya'qub ousted the
Tahirids from their own capital of Nishapur, and captured its ruler
Muhammad ibn Tahir, which led to conflicts with the Abbasid caliphate. During one of Ya'qub's numerous battles, his face was disfigured to the point that he could only eat through a pipe in his mouth for twenty days.
Campaigns in Western Iran Ya'qub set out west for
Fars with the intention of subjugating the province. Sources disagree on what happened next, but Ya'qub was eventually dissuaded from continuing his expedition, and he turned back toward Sistan. His withdrawal is described as having been caused either by the governor
Muhammad ibn Wasil's submission to him, or by the arrival of emissaries sent by the caliphal government to convince him to abandon his westward advance. In either case, Muhammad soon afterwards reached a rapprochement with the central government, and in 872 he handed over the
kharaj (tax revenues), and possibly the government of Fars, to a caliphal representative. Ya'qub later traveled to
Tabaristan in 874, and battled the
Zaydid leader
al-Hasan ibn Zayd. Ya'qub collected taxes in Tabaristan's capital
Amul before departing for Rayy. Ya'qub ibn al-Layth once again set out for Fars, this time, invading it and advancing to
Estakhr, seizing Muhammad's treasuries there. Muhammad departed from
Khuzestan, and returned to Fars in an attempt to stop Ya'qub. They met near
Lake Bakhtegan in August 875, and in the resulting battle, Muhammad, despite having a numerically superior army, was defeated. Muhammad was forced to flee; Ya'qub looted Muhammad's stronghold at Sa'idabad and took control of Fars. In 876, the Abbasid representative
Al-Muwaffaq offered Ya'qub governorship of Khurasan, Tabaristan, Fars,
Gurgan, and
Ray, and to appoint him as head of security in Baghdad. Ya'qub, sensing that the offer was made due to the weakness of the caliph, rejected it and wrote back that he would be advancing to the capital. The offer also alienated the Turks of Samarra, who felt that Ya'qub represented a threat to their interests. Seeing that an agreement with the Saffarid was impossible, the
Abbasid caliph
al-Mu'tamid decided upon war and pronounced a formal curse upon Ya'qub. On 7 March 876, al-Mu'tamid left Samarra, leaving his son
Al-Mufawwad in charge of the capital. On 15 March he arrived at Baghdad, before arriving near
Kalwadha and setting up camp. Ya'qub traveled through Khuzistan, during which he gained the defection of a former general of the caliph's,
Abi'l-Saj Devdad, and entered Iraq. The caliphal general
Masrur al-Balkhi managed to slow down his progress by flooding the land outside
Wasit, but the Saffarid army was able to get through this and he entered Wasit on 24 March. Leaving Wasit, he set out for the town of Dayr al-'Aqul, which was about fifty miles from Baghdad. According to one source, Ya'qub did not actually expect the caliph to offer battle; instead he would give in to any demands that the Saffarid had. Al-Mu'tamid, however, sent al-Muwaffaq to stop him. The two armies met at Istarband, between Dayr al-'Aqul and Sib Bani Kuma. The
Battle of Dayr al-Aqul took place on 8 April 876. Before the battle, Ya'qub reviewed his troops, who apparently numbered about ten thousand. The Abbasids, however, had a numerical superiority and the additional advantage of fighting on familiar territory. The center of the Abbasid army was commanded by al-Muwaffaq. Musa bin Bugha had command of the right wing, and Masrur al-Balkhi the left. A final appeal was made to the Saffarids to restore their loyalty to the caliph, and the battle began. The fighting raged on for most of the day. The Saffarid army was somewhat reluctant to directly fight the caliph and his army. Despite this, there were heavy losses on both sides, and several Abbasid and Saffarid commanders were killed. Ya'qub himself was wounded, but he did not leave the field. As evening approached, reinforcements arrived to support al-Muwaffaq. The
mawla Nusayr created a diversion by attacking the Saffarid rear from boats on the
Tigris and setting fire to the
Saffarid baggage train, giving the
Abbasids a further advantage. Eventually the Saffarid army began to flee from the battle. Ya'qub and his bodyguards continued to fight, but were forced to leave the field as the army retreated, leaving them behind. The caliph had apparently flooded the lands behind the Saffarids before the battle, and this made a retreat difficult; many men drowned attempting to escape the Abbasid army. With the Saffarids making their hasty exit, al-Muwaffaq was able to capture Ya'qub's baggage. Several political prisoners that Ya'qub had brought with him, such as the Tahirid
Muhammad bin Tahir, also fell into Abbasid hands and were freed. Ya'qub then withdrew from Iraq and died three years later. == Ideology ==