 Yazdegerd was unable to contain the Arab invasion of Iran, and spent most of his reign fleeing from one province to another in the vain hope of raising an army.Yazdegerd met his end at the hands of a miller near Marw in 651, bringing an end to the last pre-Islamic Iranian empire after more than 400 years of rule.The name of Yazdegerd is a combination of the Old Iranian "yazad yazata"- "divine being" and "-karta" "made", and thus stands for "God-made", comparable to Iranian "Bagkart" and Greek "Theoktistos".