During the Byzantine–Sasanian War of 602–628, the city was besieged and captured by Shahrbaraz in 613, along with a large number of Byzantine troops as prisoners, and was in Sasanian hands until near the end of the war.