After a popular revolt against the Bukhari occupation of Kokand, Nasrullah Khan and the puppet governor he installed, Ibrahim-Dadhoh was expelled to Khujand.
Shir Ali struggled to revive the khanate from the brief but destructive occupation by Bukhari forces.
[2][3] During his reign, the Kirghiz and Qipchaq tribes began a struggle over control of the state.
[4][5] In 1845, Shir Ali was executed in Osh, as part of a conspiracy led by the mingbashi (general) Musulmonqul to overthrow him, out of the belief that Kyrgyz Kipchaks had grown too powerful.
Alim Khan's son, Murad Beg, killed Shir Ali and was briefly declared khan, but soon overthrown because he was perceived as a puppet of Bukhara by the people of Kokand.