Jahangir's capture resulted from the treachery of the former Kyrgyz[12] Hakim of Kashgar, Ishak Khoja, who sent a misleading letter to Jahangir telling him that the main body of Qing troops had departed and inviting him to Kashgar to regain power. When Jahangir heard the news he hurried back to Kashgar but was ambushed by Qing troops under the General of Ili,[13] captured and delivered to Beijing. There he was exposed to the attention of China's capital's population, being carried for several weeks in a mobile iron cage through the main streets of Beijing.