These events greatly weakened the Sasanian Empire, but by 632, when Khosrow's grandson Yazdegerd III (r. 632–651) ascended the throne, order was somewhat restored.
Farrukhzad thereafter succeeded the latter as the spahbed and the leader of the Pahlav (Parthian) faction, which had been formed by their father Farrukh Hormizd, who was murdered in 631.
Furthermore, dams and canals became derelict, and a devastating plague erupted in the western provinces of Iran, killing half of the population along with Kavadh II, who was succeeded by his 8-year-old son Ardashir III.
Forty days later, however, Farrukh Hormizd killed him and made Khosrow's daughter Boran the new monarch of the Sasanian Empire.
Not daring to refuse, Azarmidokht had him killed with the aid of the Mihranid aristocrat Siyavakhsh, who was the grandson of Bahram Chobin, the famous spahbed and briefly shahanshah.
[9] While preparing to face the Arabs, he wrote a letter to Farrukhzad, which said that he should raise an army and go to Adurbadagan, while reminding him that Yazdegerd III was the only heritage left from the Sasanians.
After the death of his brother, Farrukhzad succeeded him as the spahbed of Khorasan and Adurbadagan, and as the new leader of the Ispahbudhan family and the Pahlav faction.
He then raised an army at Adurbadagan, and went to Ctesiphon, where he was appointed as its commander by Yazdegerd III, who fled to Hulwan with his property, family and 1,000 servants.
Meanwhile, Farrukhzad, along with Yazdegerd III, the Mihranid officer Mihran Razi, Piruz Khosrow, and Hormuzan, left Hulwan for Adurbadagan, but while they were moving to the place, they were ambushed by an Arab army at Jalula, where they were defeated.
In 642, the Arabs captured Nahavand and Spahan, killing Piruz Khosrow including other Sasanian officers such as Shahrvaraz Jadhuyih and Mardanshah.
Yazdegerd III then appointed Farrukhzad as the governor of Merv and ordered Baraz, the son of Mahoe Suri, to give absolute control of the city over to him.
[15] Farrukhzad later made a mutiny against Yazdegerd III and left for Ray,[16] to avenge his father against Siyavakhsh, who was the ruler of the city.
Farrukhzad then continued his journey to Ray, but before reaching the city met the Arab general Nu'aym near Qazvin in 651, whom he made peace with.
Farrukhzad led some of Nu'aym's cavalry by a little-known way into the city, from where they attacked the Mihranid army's rear, causing great bloodshed.
[17] Farrukhzad then went to Tabaristan, but at his arrival, he heard about the death of Yazdegerd under the orders of Mahoe Suri, which made him shave his hair and live as a monk in a fire temple at Kusan.
[19] When the Arabs invaded Tabaristan, Farrukhzad was requested by the locals to become their king, which he gladly accepted and which marked the foundation of the Bavand dynasty.