Xuanzang was welcomed to Kannauj at the request of the king Harshavardhana, who was an ally of Kumar Bhaskar Varman, to attend a great Buddhist Assembly there which was attended by both of the kings as well as several other kings from neighboring kingdoms, Buddhist monks, Brahmans, and Jains. King Harsha invited Xuanjang to Kumbh Mela in Prayag where he witnessed king Harsha's generous distribution of gifts to the poor.
Though Xuanzang is mainly known for his translation work, he also wrote a few original works.
Xuanzang's work, the Great Tang Records on the Western Regions, is the longest and most detailed account of the countries of Central and South Asia that has been bestowed upon posterity by a Chinese Buddhist pilgrim. While his main purpose was to obtain Buddhist books and to receive instruction on Buddhism while in India, he ended up doing much more. He has preserved the records of the political and social aspects of the lands he visited.
Xuanzang obtained and translated 657 Sanskrit Buddhist works. He received the best education on Buddhism he could find throughout India. Much of this activity is detailed in the companion volume to Xiyu Ji, the Biography of Xuanzang written by Huili, entitled the Life of Xuanzang.