after a fierce resistance by babak's army, afshin eventually defeated it and captured babak's castle of bazz in august 837. ya'qubi (tarikh ii, 579) records afshin freeing 7,600 arab prisoners from this fortress and he destroyed the castle. the khurramite leader went into hiding under the protection of a local christian prince sahl ibn-sunbat who later turned him into afshin. in return for afshin's achievements, the caliph rewarded him with the governorship of sind in addition to that of armenia and adharbayjan.