 In 831-833, Afshin suppressed uprisings throughout Egypt.On 2 June 832 Afshin succeeded in taking Bima in Egypt.The town surrendered to Afshin following his advice that al-Ma'mun promised safe conduct.