Yazid ibn al-Muhallab
In 716, the Arab governor of Iraq and Khurasan, Yazid ibn al-Muhallab invaded Tabaristan with the intent to conquer it. He was initially successful in his efforts, defeating Farrukhan, while seizing Dihistan and Gurgan. However, Farrukhan soon recruited the Daylamites and Gilites and defeated the Arabs. He then the inhabitants of Gurgan to revolt against the Arab garrison. The Arab garrison was subsequently massacred, including fifty members of Yazid's family. Yazid, who had reportedly become desperate, made a treaty with Farrukhan, agreeing to withdraw in return for tribute. The following year (717), the caliph Umar II () had Yazid dismissed and imprisoned.