 During the Islamic invasion of Iran, Yazdegerd III went to refuge in Marv; when he arrived to the city along with his army chief Farrukhzad, Mahoe warmly received them.However, Farrukhzad did not stay for long and mutinied against Yazdegerd and left the city.Mahoe used this opportunity to secretly plot with the Hephthalite ruler Nizak against Yazdegerd, who, however, discovered the plot and fled from Mahoe's residence.