Reflecting on the previous thousand years or more of Chinese history, Xuanzang saw that the ancients had built the Chinese state on the foundations of a Confucian ethos whose ideology was key to an ordered cosmos, while Daoism had given them the spiritual dimension of a traditional religion, and that these twin pillars had served the country well.