While trade relations between India and China had been ongoing from at least the 1st century CE, and had been strengthened through the
expansion of Buddhism into China from the time of the
Three Kingdoms, it was not until the expansion of the
Turkic Khaganate began to threaten the borders of India and China that embassies were sent between the two regions for military alliances. Xuanzang is credited as being one of the first diplomats to establish such a relation between
Tang China and the Kingdom of Kannauj. Xuanzang's travels were motivated by his deep interest in Buddhist lore. While he was not legally authorized by the Tang court to leave China, he managed to journey to India and record his meetings with the kings of
various Indian kingdoms. Of particular note is emperor
Harsha, whom Xuanzang managed to convince to send an emissary to
Emperor Taizong of Tang. These
diplomatic relations allowed Xuanzang to return to China without facing legal repercussions, instead granting him an audience with Taizong, who ultimately commissioned Xuanzang to write a record of his journeys to be entered into the official Tang records. ==Overview==