He served under Caliph al-Mutawakkil (r. 847–861) in Azerbaijan, but later led the conspiracy among the Turkic troops who killed the caliph. Closely allied to another Turkic officer, Wasif, Bugha held power at court under the caliphs al-Muntasir (r.