The Kharmang came under the control of the Namgyal royal family and developed a close relationship with Ladakh when the raja of Ladakh, Jamyang Mangyal, attacked the principalities in Kargil. Mangyal annihilated the Skardu garrison at Kharbu and put to the sword a number of petty Muslim rulers in the principalities of Purik (Kargil). Ali Sher Khan Anchan, raja of Khaplu and Shigar, left with a strong army via Marol.