The Tang dynasty (618–907) of ancient China witnessed many advancements in Chinese science and technology, with various developments in woodblock printing, timekeeping, mechanical engineering, medicine, and structural engineering.

Woodblock printing

The popularization of woodblock printing during the Tang dynasty made the written word available to greater audiences. As a result of the much wider distribution and circulation of reading materials, the general populace were for the first time able to purchase affordable copies of texts, which correspondingly led to greater literacy. While the immediate effects of woodblock printing did not create a drastic change in Chinese society, in the long term, the accumulated effects of increased literacy enlarged the talent pool to encompass civilians of broader social-economic circumstances and backgrounds, who would be seen entering the imperial examinations and passing them by the later Song dynasty. The extent of woodblock printing is attested to by one of the world's oldest surviving printed documents, a miniature Buddhist dharani sutra unearthed at Xi'an in 1974, dating roughly from 650 to 670. A copy of the Diamond Sutra found at Dunhuang is the earliest surviving full-length book printed at regular size, complete with illustrations embedded within the text and dated precisely to 868. Among the earliest documents to be printed were Buddhist texts as well as calendars, the latter essential for calculating and marking which days were auspicious and which days were not. The commercial success and profitability of woodblock printing was attested to by one British observer at the end of the nineteenth century, who noted that even before the arrival of western printing methods, the price of books and printed materials in China had already reached an astoundingly low price compared to what could be found in his home country. Of this, he said:

Science and technology of the Tang dynasty

Although Bi Sheng later invented the movable type system in the eleventh century, Tang dynasty style woodblock printing would remain the dominant mode of printing in China until a newer model of printing press from Europe became used in East Asia. However, the decisive breakthrough in China was not the Gutenberg letterpress, but lithography, a nineteenth-century technological marvel almost wholly forgotten in Europe.

Science and technology of the Tang dynasty

Playing cards

Playing cards may have been invented during the Tang dynasty around the ninth century AD as a result of the usage of woodblock printing technology. The first possible reference to card games comes from a ninth-century text known as the Collection of Miscellanea at Duyang, written by Tang dynasty writer Su E. It describes Princess Tongchang, daughter of Emperor Yizong of Tang, playing the "leaf game" in 868 with members of the clan of Wei Baoheng, the family of the princess' husband. The first known book on the "leaf" game was called the Yezi Gexi and allegedly written by a Tang woman. It received commentary by writers of subsequent dynasties. The Song dynasty (960–1279) scholar Ouyang Xiu (1007–1072) asserts that the "leaf" game existed at least since the mid-Tang dynasty and associated its invention with the development of printed sheets as a writing medium. However, Ouyang also claims that the "leaves" were pages of a book used in a board game played with dice, and that the rules of the game were lost by 1067.

Science and technology of the Tang dynasty

Other games revolving around alcoholic drinking involved using playing cards of a sort from the Tang dynasty onward. However, these cards did not contain suits or numbers. Instead, they were printed with instructions or forfeits for whoever drew them.

The earliest dated instance of a card game involving cards with suits and numerals occurred on 17 July 1294 when two gamblers, Yan Sengzhu and Zheng Pig-Dog, were arrested for playing with zi pai. Authorities impounded nine of their cards along with wood blocks for printing them.