Genghis Khan (c. 1162 - 1227) and his immediate successors conquered nearly all of Asia and European Russia and sent armies as far as central Europe and Southeast Asia. The emperors of the Yuan dynasty (1271-1368) in the 13th and 14th century converted to Tibetan Buddhism. Kublai Khan (reign 1269-1294; established the Yuan-dynasty in 1271) invited lama Drogön Chögyal Phagpa of the Sakya school of Tibetan Buddhism to spread Buddhism throughout his realm (the second introduction of Buddhism among the Mongols). Buddhism became the "de facto" state religion of the Mongol Yuan state. In 1269, Kublai Khan commissioned Phagpa lama to design a new writing system to unify the writing systems of the multilingual empire. The 'Phags-pa script, also known as the "Square script", was based on the Tibetan script and written vertically from top was designed to write in Mongolian, Tibetan, Chinese, Uighur and Sanskrit languages and served as the official script of the empire. Tibetan Buddhist monasticism made an important impact on the early development of Mongolian Buddhism. Buddhist monkhood played significant political roles in Central and Southeast Asia, and the sangha in Mongolia was no exception. Mongols assisted Tibetans in unifying the country. The activities of the Mongols were conducive to the prominency of the Sakya school and then the Gelug, and to the further development of Tibeto-Mongolian civilisation. The Mongols returned to shamanic traditions after the collapse of the Mongol Empire. Hutuhtai Secen Hongtaiji of Ordos and his two brothers invaded Tibet in 1566. He sent an ultimatum to some of the ruling clergy of Tibet demanding their submission. The Tibetan supreme monks decided to surrender and Hutuhtai Secen Hongtaiji returned to Ordos with three high ranking monks. Tumen Jasaghtu Khan invited a monk of the Kagyu school in 1576. In 1578 Altan Khan, a Mongol military leader with ambitions to unite the Mongols and to emulate the career of Genghis Khan, invited the 3rd Dalai Lama, the head of the rising Gelug lineage to a summit. They formed an alliance that gave Altan Khan legitimacy and religious sanction for his imperial pretensions and that provided the Buddhist school with protection and patronage. Altan Khan recognized Sonam Gyatso lama as a reincarnation of Phagpa lama, gave the Tibetan leader the title of Dalai Lama ("Ocean Lama"), which his successors still hold.