He successfully resisted the attacks of Yunus Khan, against whom he had rebelled in 1479-80.[3] Ahmad Alaq, son of Yunus Khan, took Kashgar from him in 1499, but could not hold it. Sultan Said Khan took Kashgar from him, in 1514; in danger of losing Yarkand and Khotan as well, he gave the government to his eldest son Jahangir Mirza, and fled to Ladakh.[4]