The history of Chinese literature extends thousands of years, and begins with the earliest recorded inscriptions, court archives, building to the major works of philosophy and history written during the Axial Age. The Han (202 BC220 AD) and Tang (618–907 AD) dynasties were considered golden ages of poetry, while the Song (960–1279) and Yuan (1271–1368) were notable for their lyrics (ci), essays, dramas, and plays. During the Ming and Qing, mature novels were written in written vernacular Chinese, an evolution from the preeminence of Literary Chinese patterned off the language of the Chinese classics. The introduction of widespread woodblock printing during the Tang and the invention of movable type printing by Bi Sheng (990–1051) during the Song rapidly spread written knowledge throughout China. Around the turn of the 20th century, the author Lu Xun (1881–1936) is considered an influential voice of vernacular Chinese literature.

Pre-classical period Formation of the earliest layer of Chinese literature was influenced by oral traditions of different social and professional provenance: cult and lay musical practices (Shijing), divination (Yi jing, Guicang and Lianshan), astronomy, ritual (Etiquette and Ceremonial), exorcism, etc. An attempt at tracing the genealogy of Chinese literature to religious spells and incantations (the six zhu 六祝, as presented in the "Da zhu" chapter of the Rites of Zhou) was made by Liu Shipei.刘师培,《文学出于巫祝之官说》

Classical texts

There is a wealth of early Chinese literature dating from the Hundred Schools of Thought that occurred during the Eastern Zhou dynasty (770–256 BC). The most important of these include the Classics of Confucianism, of Daoism, of Mohism, of Legalism, as well as works of military science and Chinese history. Note that, except for the books of poems and songs, most of this literature is philosophical and didactic; there is little in the way of fiction. However, these texts maintained their significance through both their ideas and their prose style.

The Confucian works in particular have been of high importance to Chinese culture and history, as a set of works known as the Four Books and Five Classics were, in the 12th century AD, chosen as the basis for the Imperial examination for any government post. These nine books therefore became the center of the educational system. They have been grouped into two categories: the Five Classics, allegedly commented and edited by Confucius, and the Four Books. The Five Classics are: the I Ching, or Classic of Changes, a divination manual; the Classic of Poetry, a collection of poems, folk songs, festival and ceremonial songs, hymns and eulogies; the Book of Rites or Record of Rites; the Book of Documents, an early Chinese prose collection of documents and speeches allegedly written by rulers and officials of the early Zhou period and earlier; the Spring and Autumn Annals, a historical record of Confucius' native state, Lu, from 722 to 479 BC.

The Four Books are: the Analects of Confucius, a book of pithy sayings attributed to Confucius and recorded by his disciples; the Mencius, a collection of political dialogues; the Doctrine of the Mean, a book that teaches the path to Confucian virtue; and the Great Learning, a book about education, self-cultivation and the Dao.

Other important philosophical works include the Mohist Mozi, which taught "inclusive love" as both an ethical and social principle, and Hanfeizi, one of the central Legalist texts.

Important Daoist classics include the Dao De Jing, the Zhuangzi, and the Liezi. Later authors combined Daoism with Confucianism and Legalism, such as Liu An (2nd century BC), whose Huainanzi (The Philosophers of Huai-nan) also added to the fields of geography and topography.

Among the classics of military science, The Art of War by Sun Tzu (6th century BC) was perhaps the first to outline guidelines for effective international diplomacy. It was also the first in a tradition of Chinese military treatises, such as the Wujing Zongyao (Collection of the Most Important Military Techniques, 1044 AD) and the Huolongjing (Fire Dragon Manual, 14th century AD).

Historical texts, dictionaries and encyclopedias

The Chinese kept consistent and accurate court records, and although their calendars varied from court to court, these disparate records could be aligned without evident contradiction by the year 841 BC, at the beginning of the Gonghe Regency of the Western Zhou dynasty. The earliest known narrative history of China was the Zuo Zhuan, which was compiled no later than 389 BC, and attributed to the blind 5th-century BC historian Zuo Qiuming. The Book of Documents is thought to have been compiled as far back as the 6th century BC, and was certainly compiled by the 4th century BC, the latest date for the writing of the Guodian Chu Slips unearthed in a Hubei tomb in 1993. The Book of Documents included early information on geography in the Yu Gong chapter. The Bamboo Annals found in 281 AD in the tomb of the King of Wei, who was interred in 296 BC, provide another example; however, unlike the Zuo Zhuan, the authenticity of the early date of the Bamboo Annals is in doubt. Another early text was the political strategy book of the Zhan Guo Ce, compiled between the 3rd and 1st centuries BC, with partial amounts of the text found amongst the 2nd century BC tomb site at Mawangdui. The oldest extant dictionary in China is the Erya, dated to the 3rd century BC, anonymously written but with later commentary by the historian Guo Pu (276–324). Other early dictionaries include the Fangyan by Yang Xiong (53 BC – 18 AD) and the Shuowen Jiezi by Xu Shen (58–147 AD). One of the largest was the Kangxi Dictionary compiled by 1716 under the auspices of the Kangxi Emperor (r. 1661–1722); it provides definitions for over 47,000 characters.

Although court records and other independent records existed beforehand, the definitive work in early Chinese historical writing was the Shiji, or Records of the Grand Historian written by Han dynasty court historian Sima Qian (145 BC – 90 BC). This text laid the foundation for Chinese historiography and the multiple official Chinese historical texts compiled for each dynasty thereafter. Sima Qian is often compared to the Greek Herodotus in scope and method, because he covered Chinese history from the mythical Xia dynasty until the contemporary reign of Emperor Wu of Han while retaining an objective and non-biased standpoint. This was often difficult for the official dynastic historians, who used historical works to justify the reign of the current dynasty. He influenced the written works of a number of Chinese historians, including the works of Ban Gu and Ban Zhao in the 1st and 2nd centuries, and even Sima Guang's 11th-century compilation of the Zizhi Tongjian, presented to Emperor Shenzong of Song in 1084 AD. The overall scope of the historiographical tradition in China is termed the Twenty-Four Histories, created for each successive Chinese dynasty up until the Ming dynasty (1368–1644); China's last dynasty, the Qing dynasty (1644–1911), is not included.

Large encyclopedias were also produced in China through the ages. The Yiwen Leiju encyclopedia was completed by Ouyang Xun in 624 during the Tang dynasty, with aid from scholars Linghu Defen and Chen Shuda. During the Song dynasty, the compilation of the Four Great Books of Song (10th century – 11th century), begun by Li Fang and completed by Cefu Yuangui, represented a massive undertaking of written material covering a wide range of different subjects. This included the Taiping Guangji (978), the Taiping Yulan (983), the Wenyuan Yinghua (986), and the Cefu Yuangui (1013). Although these Song dynasty Chinese encyclopedias featured millions of written Chinese characters each, their aggregate size paled in comparison to the later Yongle Encyclopedia (1408) of the Ming dynasty, which contained a total of 50 million Chinese characters.Ebrey (2006), 272. Even this size was trumped by later Qing dynasty encyclopedias, such as the printed the Complete Classics Collection of Ancient China (1726), which featured over 100 million written Chinese characters in over 800,000 pages, printed in 60 different copies using copper-metal Chinese movable type printing. Other great encyclopedic writers include the polymath scientist Shen Kuo (1031–1095) and his Dream Pool Essays, the agronomist and inventor Wang Zhen (fl. 1290–1333) and his Nongshu, and the minor scholar-official Song Yingxing (1587–1666) and his Tiangong Kaiwu.

Classical poetry

The rich tradition of Chinese poetry began with two influential collections. In northern China, the Shijing or Classic of Poetry (approx. 11th–7th century BC) comprises over 300 poems in a variety of styles ranging from those with a strong suggestion of folk music to ceremonial hymns.Cai 2008, p. 13 et seq., Chapter 1 The word shi has the basic meaning of poem or poetry, as well as its use in criticism to describe one of China's lyrical poetic genres. Confucius is traditionally credited with editing the Shijing. Its stately verses are usually composed of couplets with lines of four characters each (or four syllables, as Chinese characters are monosyllabic), and a formal structure of end rhymes. A number of these early poems establish the later tradition of starting with a description of nature that leads into emotionally expressive statements, known as bi, , or sometime .Lin and Owen 1986, pp. 342–343 regarding xing; Cai 2008, p. 8, 43 on bixing, and p. 113 on the development and expansion of bixing after its Shijing beginnings Associated with what was then considered to be southern China, the Chuci is ascribed to Qu Yuan (c. 340–278 BC) and his follower Song Yu (fl. 3rd century BC) and is distinguished by its more emotionally intense affect, often full of despair and descriptions of the fantastic.Cai 2008, p. 36 et seq., Chapter 2 In some of its sections, the Chu Ci uses a six-character per line meter, dividing these lines into couplets separated in the middle by a strong caesura, producing a driving and dramatic rhythm. Both the Shijing and the Chuci have remained influential throughout Chinese history.