After the defeat of the Persian forces at the Battle of Jalula in 637, Yazdgerd III went to Rey and from there moved to Merv, where he set up his capital and directed his chiefs to conduct continuous raids in Mesopotamia. Within four years, Yazdgerd III felt powerful enough to challenge the Muslims again for control of Mesopotamia. Accordingly, he recruited 100,000 hardened veterans and young volunteers from all parts of Persia, under the command of Mardan Shah, which marched to Nahavand for the last titanic struggle with the Caliphate.