The "Jiu Tangshu" records that Gampo sent the first embassy from Tibet to the Tang in 634 CE. It was a "tribute mission" with Tibet giving gifts to the Tang. He gave gifts of gold and silk to the Tang emperor and asked for a Tang princess in marriage in return (heqin). Tang said no. So he attacked Songzhou (part of Tang) in 637 and 638. But he then gave up and said sorry. He asked for a wife again, and this time the Tang said yes. And so he married Wencheng, niece of Emperor Taizong of Tang. So there was peace between the Tang and Tibetan empires of China.