Xunzi (荀子, Xúnzǐ, lit. 'Master Xun'; c. 310 – c. after 238 BCE), born Xun Kuang, was a Chinese philosopher of Confucianism 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 Taoist 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.
Born in the state of Zhao, Xunzi studied at the prestigious Jixia Academy, where he learned about every major philosophical tradition of his time. After his graduation, Xunzi traveled to Chu where he mastered poetry, and then returned to Qi as a highly regarded teacher at the academy. His students Han Fei and Li Si each had important political and academic careers, though some of their Legalist sentiments were at odds with his philosophy. Other students such as Fuqiu Bo [zh], Zhang Cang and Mao Heng [zh] authored important editions and commentaries on the Confucian classics. Later in his life, Xunzi served in the court of Lord Chunshen and died sometime after Lord Chunshen's death. The constant warfare of his time informed his work profoundly, as did his interactions with leaders and witnessing the downfall of various states.