Yaqub Beg
In 1865, after Kokand Khanate had been successfully invaded by the Russian and its ruler Alimqul killed, Wali Khan joined a large group of Kokandian officials who decided to try their luck in Kashgaria. They appeared in Kashgar in September 1865, but had to submit to the fellow Kokandian Yaqub Beg, who had already firmly established himself as the ruler of the city. Wali Khan's followers attempts to bring him to power again very easily foiled by Yaqub Beg, who had Wali Khan arrested and sent to Yangihissar under armed guard, where he was later poisoned.