The Guanzi () is an ancient Chinese political and philosophical text that is named for and traditionally attributed to the 7th century BCE philosopher and statesman Guan Zhong, who served as Prime Minister to Duke Huan of Qi. At over 135,000 characters long, the "Guanzi" is one of the longest early Chinese philosophical texts. The Han Dynasty scholar Liu Xiang edited the received "Guanzi" text circa 26 BCE. It contains a wide variety of material from many different authors over several successive centuries, largely associated with the 4th century BCE Jixia Academy in the Qi capital of Linzi, but much of it may actually not have been compiled until after the book "Han Feizi" (though the Neiye are thought to have influenced the Zhuangzi).