The Sassanid dynasty was founded by Ardashir I when he had defeated the last Parthian (Arsacid) king, Artabanus IV, and ended when the last Sassanid Shahanshah ("King of Kings"), Yazdegerd III (632–651), lost a 14-year struggle to drive out the early Arab Caliphate, the first of the Islamic empires.