The Saffarid dynasty was a SunniPersian dynasty from Sistan that ruled over parts of eastern Iran, with its capital at Zaranj, from 861 to 1003. One of the first indigenous Persian dynasties to emerge after the Islamic conquest, the Saffarid dynasty was part of the Iranian Intermezzo. The dynasty's founder was Ya'qub bin Laith as-Saffar, who was born in 840 in a small town called Karnin, which was located east of Zaranj and west of Bost, in what is now Afghanistan. A native of Sistan and a local ayyār, Ya'qub worked as a coppersmith before becoming a warlord. He seized control of the Sistan region and began conquering most of Iran and Afghanistan, as well as parts of Pakistan, Tajikistan and Uzbekistan. The Saffarids used their capital Zaranj as a base for an aggressive expansion eastward and westward. They first invaded the areas south of the Hindu Kush, and then overthrew the Persian Tahirid dynasty, annexing Khorasan in 873. By the time of Ya'qub's death, he had conquered the Kabul Valley, Sindh, Tocharistan, Makran, Kerman, Fars, Khorasan, and nearly reached Baghdad but then suffered a defeat by the Abbasids. The Saffarid dynasty did not last long after Ya'qub's death. His brother and successor, Amr bin Laith, was defeated at the Battle of Balkh against Ismail Samani in 900. Amr bin Laith was forced to surrender most of his territories to the new rulers. The Saffarids were subsequently confined to their heartland of Sistan, with their role reduced to that of vassals of the Samanids and their successors.
Founding
The dynasty began with Ya'qub ibn al-Layth al-Saffar, a coppersmith who moved to the city of Zaranj. He left work to become an Ayyar and eventually got the power to act as an independent ruler. From his capital Zaranj he moved east into al-Rukhkhadj and Zamindawar followed by Zunbil and Kabul by 865. He then invaded Bamyan, Balkh, Badghis, and Ghor. In the name of Islam, he conquered these territories which were ruled mostly by Buddhisttribal chiefs. He took vast amounts of plunder and slaves from this campaign. Nancy Dupree in her book An Historical Guide to Afghanistan describes Yaqub's conquests as such:
Expansion
The Tahirid city of Herat was captured in 870 and his campaign in the Badghis region led to the capture of Kharidjites which later formed the Djash al-Shurat contingent in his army. Ya'qub then turned his focus to the west and began attacks on Khorasan, Khuzestan, Kerman and Fars. The Saffarids then seized Khuzestan and parts of southern Iraq, and in 876 came close to overthrowing the Abbasids, whose army was able to turn them back only within a few days' march from Baghdad. These incursions, however, forced the Abbasid caliphate to recognize Ya'qub as governor of Sistan, Fars and Kerman, and Saffarids were even offered key posts in Baghdad.
Decline
In 901, Amr Saffari was defeated at the battle of Balkh by the Samanids, and they lost Khorasan to them.The Saffarids were reduced to the provinces of Fars, Kerman and Sistan. Under Tahir ibn Muhammad ibn Amr, the dynasty fought the abbasids for the possesion of Fars and keep its control over the province. In 908, begin a civil war between Tahhir and the pretender al-Laith b. 'Ali in Sistan. In the next years, the governor of Fars, Sebük-eri defeat to the Abbasids.In 912, the Samanids finally expulsed the Saffarids from Sistan. Sistan passed brieftly to Abbasid control, but become independent again under the Saffarid Abu Ja'far Ahmad ibn Muhammad, but the dynasty was now a minor power isolated in Sistan. In 1002, Mahmud of Ghazni invaded Sistan, dethroned Khalaf I and finally ended the Saffarid dynasty.