The two-day annual festival of Stok Monastery concludes with splendid dance performances in Leh. A ritual dance-mask festival is held annually in the monastery. Stok Monastery, located 15 km from Leh, was once the residence of the royal family of Ladakh. The Namgyals who were the rulers of Ladakh had abandoned Shey in 1842 and fled to Stok when the Dogra rulers of Jammu and Kashmir invaded Ladakh. The descendants of the royal family still reside at the Stok Palace. The monastery was however built in the 14th century by a lama known as Lhawang Lotus. The gompa is affiliated to Gelugpa or the Yellow Hat sect of Buddhism.