Xun Kuang, better known as Xunzi, was a Chinese philosopher of Confucianism who lived during the late Warring States period. After his predecessors Confucius and Mencius, Xunzi is often ranked as the third great Confucian philosopher of antiquity. By his time, Confucianism had suffered considerable criticism from Daoist and Mohist thinkers, and Xunzi is traditionally regarded as a synthesizer of these traditions with earlier Confucian thought. The result was a thorough and cohesive revision of Confucianism, which was crucial to the philosophy's ability to flourish in the Han dynasty and throughout the later history of East Asia. His works were compiled in the eponymous Xunzi, and survive in excellent condition. Unlike other ancient compilations, his authorship of these texts is generally secure, though it is likely that Western Han Dynasty historian Liu Xiang organized them into their present form centuries after Xunzi's death.