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 religion 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 Buddhist monk from Gandhara (modern-day Pakistan), Padmasambhava brought some more Buddhism while Trisong Detsen was king of Tibet. He also wrote a number of important texts. 