Padmasambhava, Lotus born Guru, is very prominent historical figure worshiped as deity in Tibetan Buddhism. In the middle of the eighth century AD, the Tibetan king Thi-Sron Detsan sent to India inviting the learned guru Padmashambhava to come to Tibet. Padmasambhava was renowned for his knowledge of dharani [mystical sentences] and of their efficacious application, and was warmly welcomed. He remained fifty years in the country, founding monasteries, and teaching the Tantra-Yogacarya doctrine. He is said to have subdued all the malignant gods in Tibet, sparing only those that became converted to Buddhism and that promised to enroll them in the Mahayana Pantheon and to see that they were properly worshiped. He claimed to have received from the dakini the books from which he acquired his miraculous power.