Answer
The constant warfare during Xunzi's time profoundly influenced his work. He witnessed the devastating effects of conflict and the erosion of social order. This led him to emphasize the importance of social harmony, order, and the rule of law. He believed that a well-ordered society could only be achieved through education and the cultivation of virtue.