Farrukhzad, the previously minister of Yazdegerd, and ruler of Tabaristan, managed to repel the Arabs with the aid of Gil Gavbara and make a treaty with them.