Much of Ngari became a part of the Malla empire (capital Sinja in western Nepal) by the 14th Century. From the 15th century to the 17th century, Mustang had control over the trade between the Himalayas and India because of its strategic location. In 1380, Lo became an independent kingdom under Ame Pal. The last royal family traced its lineage for 25 generations, all the way back to Ame Pal. Ame Pal oversaw the founding and building of much of the Lo and Mustang capital of Lo Manthang, a walled city surprisingly little changed in appearance from that time period. The only remnant of these kingdoms is the still-intact Kingdom of Lo, an area corresponding to the northern third of Mustang District.