Shudja ad-Din Ahmad Khan was killed in 1618 during hunting when his camp in the mountains was attacked at night by 600 armed men of Muhammad Kasim Shah, ruler of Sarikol. Shudja ad-Din Ahmad Khan became a victim of the struggle between Moghul Emirs for the influence and power in the Yarkand Khanate, when he attempted to put Churas Emirs into a privilege position in the Khanate, that caused objection of many other Emirs and Sultans, who used Shah of Sarikol for his assassination. Previously,
Abdurashid Khan (1533–1560) of Yarkand Khanate expelled to
India practically all
Dughlat Emirs, because regarded them aa a threat to his power.
Abdul Karim Khan (1560–1591) did the same with
Barlas Emirs, who became too powerful under leadership of Muhammad Barlas,
Great Emir of Abdurashid Khan, they were all expelled to
Mughal Empire of India as well. Shudja ad-Din Ahmad Khan never attempted to perform such radical measures, but tried to reduce the local power of many Emirs and Sultans and to strengthen centralization of power in the hands of a
Great Khan of
Yarkand, his measures were supported by Churas Emirs, but were met with hate by the others, that cost him his life. After killing of Shudja ad-Din Khan, Kuraish Sultan, who was an uncle of
Abdal Latif Sultan and son of Yunus Sultan, was declared a Khan in
Khutbah on Friday prayer in Yarkand and by striking a coin with his name by Shah Farbih, newly appointed Hakim of Yarkand, who was an
Atalik of Kuraish Sultan. Kuraish Sultan ruled only 9 days. Begs of Kashgar, Yarkand and
Yangi Hisar did not recognized him and supported Abdal Latif Sultan, son of killed Khan, as a lawful successor. In the place
Shapan, near Yarkand, the battle followed in which Shah Farbih was killed by
Atalik of Abdal Latif Sultan Muhammad Yusup Beg, the body of other powerful Shah, Abul-Mani, was not found. Assassin of Shudja ad-Din Ahmad Khan Muhammad Kasim Shah, Muhammad Avez Shah, newly elected Yarkand Khan Kuraish Sultan, were all arrested and executed. This put an end to the influence of Dynasty of
Shahs of
Badakhshan in the Yarkand Khanate. Second son of Shudja ad-Din Ahmad Khan, Abdal Latif Sultan, was declared a
Great Khan of Yarkand , he was only 13 years old at that time and became known as
Afak (Beautiful) Khan (1618–1630). ==Genealogy of Chaghatai Khanate==