Tools and astrology was imported from Tang and the Western Xia; the dharma and the art of writing came from India; treasures from the Nepalis and the Mongols; laws from the Uyghurs of the Turkic Khaganate to the North.