Buddhism is the largest religion in Mongolia practiced by 51.7% of Mongolia's population, according to the 2020 Mongolia census. Buddhism in Mongolia derives much of its recent characteristics from Tibetan Buddhism of the Gelug and Kagyu lineages, but is distinct and presents its own unique characteristics. Buddhism in Mongolia began with the Yuan dynasty (1271–1368) emperors' conversion to Tibetan Buddhism. The Mongols returned to shamanic traditions after the collapse of the Mongol Empire, but Buddhism reemerged in the 16th and 17th centuries. Buddhism in Mongolia derives many of its recent characteristics from Tibetan Buddhism of the Gelug and Kagyu lineages, but is distinct and presents its own unique characteristics. Traditionally, the Mongolian ethnic religions involved worship of Heaven (the "eternal blue sky") and ancestors and the ancient North Asian practices of shamanism, in which human intermediaries went into trance and spoke to and for some of the numberless infinities of spirits responsible for human luck or misfortune. The earliest introduction of Buddhism into the Mongolian steppes took place during the periods of the nomadic empires. Buddhism penetrated Mongolia from Nepal via Central Asia. Many Buddhist terms of Sanskrit origin were adopted via the Sogdian language. The rulers of the nomadic empires such as the Xiongnu (209 BC – 93 CE), Xianbei (93–234), Rouran Khaganate (late 4th c. – middle 6th c.) and the Göktürks (middle first mill. CE) received missionaries and built temples for them. Buddhism prevailed among aristocrats and was patronised by the monarchs of the Xianbei-led Northern Wei dynasty (386–535) and of the Khitan-led Liao dynasty (916–1125). The Khitans aristocracy regarded Buddhism as the culture of the Uyghur Khaganate that dominated the Mongolian steppes before the rise of the Liao dynasty. The monarchs of the Jurchen-led Jin dynasty (1115–1234) also regarded Buddhism as part of their culture.