Gong'an 公案, outside of China better known by the Japanese pronunciation kōan, are important teaching materials in Chan Buddhism (Chanzong 禪宗, in the West better known as Zen).
The term gong'an originally denoted official case records used by government offices in judicial decisions, especially for cases that had not yet been adjudicated. The term gong'an also referred to the desk or table used by officials when hearing legal cases. From this meaning, the literary genre of "court-case fiction" (gong'an xiaoshuo 公案小說) developed.
In the tradition of Chan (Zen) Buddhism, the term was adopted to denote classical anecdotes or precedents that illustrate how the Buddha and Chan patriarchs and teachers (chanshi 禪師) guided their disciples towards enlightenment. These gong'an are also used to discern delusion from awakening, and right from wrong.
The preface to the gong'an collection Biyanlu 碧巖錄 states the origin lies in the method of using gong'an in the late Tang period 唐 (618-907). By the Song period 宋 (960-1279), many different methods of studying gong'an had emerged, forming a distinctive body of gong'an studies within the Chan tradition.
Typical methods of gong'an to ignite enlightenment include the following: interpretive revisions or corrective explanations of gong'an cases (daibie 代別), prose expositions that reveal the main idea of a gong'an (niangu 拈古), verse compositions that praise or interpret a gong'an (songgu 頌古), commentarial elaborations that connect verses and doctrinal teachings to illuminate a gong'an (pingchang 評唱), meditative inquiry into the seemingly inexplicable replies of Chan masters within gong'an (kanhua chan 看話禪). The latter method developed into investigation of the entire gong'an case as a central focus of contemplation.
The core principle of Chan transmission is "mind-to-mind transmission" (yi xin chuan xin 以心傳心). However, this "mind" is ineffable and can only be intuited, not conceptualised. As the gong'an tradition developed, it led to subtle contests of insight between master and disciple, through which mutual understanding could be attained.
Thus, sayings and encounters (jiyuan 機緣) of earlier renowned Chan masters, the so-called "ancient worthies" (gude 古德), were regarded as models. These served as standards for judging right and wrong in contemporary situations, forming what came to be known as "ready-made or precedent gong'an" (xiancheng gong'an 現成公案). Through them, one could also explore the spiritual inner realisation and principles of the ancients.
However, such gong'an are characteristically obscure and deeply enigmatic and cannot be understood through simple comprehension. Disciples often failed to respond suitably to circumstances, while masters may deliberately use paradox or ambiguity, resulting in a wide range of striking and unconventional expressions. These, in turn, create new gong'an that circulate within the monastic community.
As their number continued to grow, Chan learning gradually developed into a specialised "study of gong'an" (gong'anxue 公案學). Although Chan Buddhism originally rejected reliance on written texts and did not advocate studying Buddhist scriptures, it nevertheless encouraged engagement with gong'an, and thus inspired a Buddhist literary genre of its own, "Chan scriptures" (chanjing 禪經).
Chan practitioners sometimes used shouts or blows, and at other times engaged in exchanges of "enigmatic speech" (miyu 迷語), seeking sudden insight through these confrontations and dialogues. When a disciple's response accorded with the master's intent, it was confirmed as mind-to-mind transmission, leading to the state of sudden enlightenment (dunwu 頓悟).
Therefore, studying gong'an was fundamentally about learning how to question and how to respond, in order to reach a subtle state where expression is free from duality, not constrained by fixed positions, and ultimately marked by a deep realisation of "nothing to be attained" (wu suo de 無所得).