▁than ▁descend ants ▁of ▁Ch ag ata i . ▁ ▁M og h ul istan ▁( 1 3 6 3 – 1 4 8 7 ) ▁ ▁I ly as ▁K ho ja ▁attacked ▁Tim ur ▁in ▁ 1 3 6 4 ▁and ▁defeated ▁him ▁on ▁the ▁north ▁bank ▁of ▁the ▁S yr ▁D ary a . ▁He ▁then ▁bes ie ged ▁Sam ark and ▁but ▁suffered ▁har sh ▁attr ition ▁due ▁to ▁an ▁ep ide mic ▁so ▁that ▁by ▁the ▁next ▁year ▁he ▁was ▁forced ▁to ▁retre at ▁from ▁Trans ox ania . ▁The ▁D ug hl at ▁Q amar - ud - din ▁Khan ▁D ug hl at ▁re bel led ▁and ▁killed ▁I ly as ▁K ho ja ▁in ▁ 1 3 6 8 , ▁taking ▁the ▁throne ▁for ▁himself . ▁I ly as ▁K ho ja ' s ▁brother ▁Kh iz r ▁K ho ja ▁fled ▁to ▁Tur pan ▁where ▁he ▁set ▁up ▁his ▁own ▁independent ▁real m ▁and ▁converted ▁the ▁last ▁U yg h urs ▁there ▁to ▁Islam . ▁In ▁ 1 3 7 5 , ▁Tim ur ▁inv aded ▁M og h ul istan , ▁lo oting ▁the ▁I li ▁region . ▁Q amar ▁ret ali ated ▁by ▁ra iding ▁Fer g ana ▁until ▁Tim ur ▁put ▁him ▁to ▁flight . ▁Tim ur ▁fell ▁into ▁an ▁amb ush ▁and ▁bare ly ▁escaped , ▁retre ating ▁to ▁Sam ark and . ▁Tim ur ▁attacked ▁again ▁in ▁ 1 3 7 6 ▁and ▁ 1 3 8 3 ▁but