King Bhagan reunited and strengthened Ladakh and founded the Namgyal dynasty ("Namgyal" means "victorious" in several Tibetan languages). The Namgyals repelled most Central Asian raiders and temporarily extended the kingdom as far as Nepal. During the Balti invasion led by Raja Ali Sher Khan Anchan, many Buddhist temples and artefacts were damaged. Ali Sher Khan took the king and his soldiers as captives. Jamyang Namgyal was later restored to the throne by Ali Sher Khan and given the hand of a Muslim princess in marriage. Her name was Gyal Khatun or Argyal Khatoom. She was to be the first queen and her son was to become the next ruler. Historical accounts differ upon who her father was. Some identify Ali's ally and Raja of Khaplu Yabgo Shey Gilazi as her father, while others identify Ali himself as the father. In the early 17th century efforts were made to restore the destroyed artefacts and "gonpas" by Sengge Namgyal, the son of Jamyang and Gyal. He expanded the kingdom into Zangskar and Spiti. Despite a defeat of Ladakh by the Mughals, who had already annexed Kashmir and Baltistan, Ladakh retained its independence.