Skip to content
CodexMythologia
Back to the Codex
Portrait of Han Xiangzi, Chinese deity
Chinese
Tap or drag
Chinese

Han Xiangzi

The Immortal of the Enchanted Flute

Domain
Music, Nature & Poetry
Alignment
Neutral Good
Element
Air
Relics of Power
Divine Dizi Flute
Speak with Han Xiangzi

The full Codex

5 sections of this entry are open to everyone: the summary, the people, the symbols, the lineage and the sources. The other 9 (Name and epithets, In the ancient sources, The myths, Worship and archaeology, How the god was depicted, What scholars debate, After antiquity, Did you know?, Codex relic) are part of the full Codex: PRO opens the whole study of all 500 deities, and without a subscription you can read one full entry a day, just like in the app.

The People

People
Chinese
Region
China
Period
c. 1600 BC – present

The Chinese deities bring together traditions of Taoism, Buddhism, and folk religion, worshipped for millennia across China. Presided over by the Jade Emperor, they form a vast celestial bureaucracy mirroring the earthly empire. They are honored in temples, at Chinese New Year, and at the altars of homes and ancestors.

Chinese New Year greets the gods with fireworks, dancing lions, and offerings to the Kitchen God, who ascends to heaven to report on the family's conduct. The Dragon Boat Festival honors the poet Qu Yuan, and at Qingming families sweep the tombs and venerate the ancestors.

At a glance

Han Xiangzi is the wise Daoist musician, philosopher of acoustic harmony and celestial patron of flute players among the venerated Eight Immortals (Baxian) of China. He was the historical nephew and protégé of the renowned Confucian statesman Han Yu during the height of the Tang dynasty. He voluntarily renounced the prestigious bureaucratic career of the imperial examinations to seek enlightenment in the mountain forests under the tutelage of Lü Dongbin and Zhongli Quan. Bearer of the legendary Transverse Jade Flute (Yudi), he possesses the prodigious gift of harmonizing the cosmic energies of nature through his sacred melodies: when he blows the instrument, multicolored peonies bloom in the midst of winter snow, engraved with golden prophetic verses; he pacifies furious ocean storms and rescues lost souls in the snowstorms of existence. His sacred melody soothes the pains of the soul and renews the spring breath of life in every heart.

14 min read · Reviewed on September 28, 2026 · How we research

Sacred symbols

The dizi flute, the blossoming flowers, youth and serenity

Family

Parents
Han Yu (historical uncle and guardian)
Han Xiangzi
Genealogy according to Dongyouji; Han Xiangzi Quanzhuan; Xin Tang Shu, Livro 73; Taiping Guangji

Sources and further reading

Primary sources

  • Yang Erzeng, Han Xiangzi Quanzhuan. translation: Philip Clart, 2007.
  • Ouyang Xiu, Xin Tang Shu. translation: Burton Watson, 1968.
  • Li Fang, Taiping Guangji. translation: Pedro Ceinos, 2011.
  • Wu Yuantai, Dongyouji. translation: Philip Clart, 2020.

Studies

  • Philip Clart, The Story of Han Xiangzi: The Alchemical Adventures of a Daoist Immortal. University of Washington Press, 2007.
  • Kristofer Schipper, The Taoist Body. University of California Press, 1993.
  • Isabelle Robinet, Taoism: Growth of a Religion. Stanford University Press, 1997.
  • E. T. C. Werner, Myths and Legends of China. George G. Harrap & Co., 1922.

Name and epithets

The sacred theonym Han Xiangzi (韓湘子) is composed of the noble lineage surname Han (韓), his personal given name Xiang (湘, which evokes the poetic and crystalline waters of the sacred Xiang River), and the respectful phil…

In the ancient sources

Xin Tang Shu., 1060 CE.. Documents the official genealogy of the Han family and the historical existence of Han Xiang in the Tang dynasty. Han Xiangzi Quanzhuan., 1623 CE..

The myths

The Refusal of the Examinations and the Peonies with Golden Verses at Han Yu’s Banquet.. In the classic novel Han Xiangzi Quanzhuan by Yang Erzeng and in the chronicles of the Taiping Guangji, it is told that Han Xiangz…

Worship and archaeology

The cult and popular veneration of Han Xiangzi flourish with immense communal affection and lyrical enthusiasm throughout mainland China, Taiwan, Hong Kong and the Chinese diaspora around the world, where he is revered…

How the god was depicted

The iconography of Han Xiangzi in boxwood carving and Dehua glazed porcelain, in New Year woodblock prints and in traditional Chinese painting is one of the most graceful, youthful and harmonious in the entire Daoist pa…

What scholars debate

The Ideological Tension between Confucianism and Daoism in the Tang Dynasty.. Historians of Chinese literature and renowned sinologists such as Glen Dudbridge and Stephen Little investigate the historical and ideologica…

After antiquity

In contemporary China and in the musical culture of East Asia, Han Xiangzi remains one of the most celebrated and beloved figures of the whole group of the Eight Immortals.

Did you know?

Han Xiangzi’s jade flute is one of the Eight Secret Treasures of Daoism, symbolizing spring harmony and peace. The historical poem Han Yu wrote when his nephew rescued him in the snow became one of the masterpieces of t…

Codex relic

Divine Dizi Flute. A flute whose sound makes flowers bloom, plants grow, and all living creatures grow calm.

The rest of this scroll is sealed

The legends, the myth, the cult and relics are part of the full Codex. You can open 1 full entry for free every day; to open all 500 deities with no limits and no ads, subscribe to Codex PRO.

See Codex PROGet it on Google Play

From the same pantheon

View pantheon