 After another heavy defeat at the Battle of Jalula in 637, Yazdegerd left Hulwan for the eastern provinces of his realm, and the town fell into the hands of the pursuing Arabs under Jarir ibn Abdallah Bajali in 640.In the early 640s, the town was of strategic importance as a frontier post between the Mesopotamian lowlands and the still Sasanian-controlled Iranian plateau, and was garrisoned by troops, including Persian defectors (the "Khamra"), who were settled there under the Rashidun caliphs.In the early Islamic period, until the 10th century, the town is described "as a flourishing town in a fertile district producing much fruit" (L. Lockhart).