The ancient Chinese philosopher who wrote the “Mozi” text advocating universal love was Mozi. He lived during the Warring States period, a time when rival states competed for power and philosophers proposed competing models for restoring social order.
Mozi founded Mohism, whose central ethical principle is often translated as “universal love” or “impartial caring.” He argued that people should extend moral concern beyond their own families and political communities. In his view, favoritism and aggression encouraged conflict, while broader mutual concern would benefit society.
The Mozi is not a single work written entirely by Mozi in its surviving form. It is an anthology of teachings traditionally attributed to Mozi and later Mohist followers, and its chapters cover ethics, government, logic, military defense, ritual, and arguments against aggressive warfare. That authorship detail does not change the standard quiz answer: Mozi is the philosopher associated with the text.
A common mix-up is with Mengzi, a Confucian thinker who criticized Mohist universal love. Han Fei belonged to the Legalist tradition, while Zhuangzi represented Daoist philosophy.