In the 7th century, Songtsen Gampo married two Buddhists: Tang Dynasty Princess Wencheng and Nepali Princess Bhrikuti. They helped spread Buddhist teachings to Tibet. Buddhism was merged with local Bön religions of the Zhangzhung to create a new kind of Buddhism: Tibetan Buddhism. The Tibetans also began translating texts from Sanskrit and Chinese; and began writing some of their own texts. In the 8th century, an Indian teacher called Padmasambhava brought some more Buddhism while Trisong Detsen was king of Tibet. He also wrote a number of important texts. 