Habashi had just put down a revolt by two Seljuk amirs, Qodun and Yaruq-Tash, who had killed the previous governor of Khwarazm, Ekinchi, and wanted to rule the province themselves.
Habashi successfully put down a revolt led by two Seljuk amirs, Qodun and Yaruq-Tash, who had killed the former governor of Khwarazm, Ekinchi, and aimed to seize control of the region.