651 : Last Sassanid ruler Yazdegerd III murdered at Merv , present-day Turkmenistan , ending the dynasty . 651 : Last Sassanid ruler Yazdegerd III then fled eastward from one district to another , until at last he was killed by a local miller for his purse at Merv ( present-day Turkmenistan ) , ending the dynasty .