Middle Chinese (formerly known as Ancient Chinese) or the Qieyun system (QYS) is the historical variety of Chinese recorded in the Qieyun, a rime dictionary first published in 601 and followed by several revised and expanded editions. The Swedish linguist Bernhard Karlgren believed that the dictionary recorded a speech standard of the capital Chang'an of the Sui and Tang dynasties. However, based on the preface of the Qieyun, most scholars now believe that it records a compromise between northern and southern reading and poetic traditions from the late Northern and Southern dynasties period. This composite system contains important information for the reconstruction of the preceding system of Old Chinese phonology (early 1st millennium BC).
The fanqie method used to indicate pronunciation in these dictionaries, though an improvement on earlier methods, proved awkward in practice. The mid-12th-century Yunjing and other rime tables incorporate a more sophisticated and convenient analysis of the Qieyun phonology. The rime tables attest to a number of sound changes that had occurred over the centuries following the publication of the Qieyun. Linguists sometimes refer to the system of the Qieyun as Early Middle Chinese and the variant revealed by the rime tables as Late Middle Chinese.