The Six Stars of Wenchang
The Tianguan Shu names the six stars before the Dipper as the Wenchang palace — the gathered multitude of literary fate. What began as a constellation became a ministry of heaven.

道法自然
文昌帝君
Patron of Scholars & Examinations
Festival · 3rd day of the 2nd lunar month

Patron of Scholars & Examinations
The deified sage Zhang Yazi of Sichuan, merged with the six stars of the Wenchang asterism. For a thousand years students have prayed to him before examinations, attended by his deaf-and-blind servants Tiankong and Tian'er.
Festival · 3rd day of the 2nd lunar month
History · 史记
Wenchang Dadi, Lord of Literature, governs examinations, talent and official careers. His origin is double: astronomically, Sima Qian's Tianguan Shu records the six stars of the Wenchang palace before the Dipper; historically, he merged with a local deity of Sichuan, Zhang Yazi of Zitong, whose cult spread with traveling scholars. In 1316 the Yuan court enfeoffed him as Fuyou Wenchang Hongren Dadi — the state god of the examination system.
Beside him stand the Heavenly Deaf and the Earthly Mute: one hears all prayers but cannot reveal them, the other sees all but cannot speak — the secrecy of fate, guarded on either hand. His morality book, the Yin Zhi Wen, is among the most printed texts in Chinese history.
The Tianguan Shu names the six stars before the Dipper as the Wenchang palace — the gathered multitude of literary fate. What began as a constellation became a ministry of heaven.
His morality book commands hidden virtue: act with quiet kindness, save ants from drowning, never cheat by weight or measure. Examinations, it teaches, are won by character before talent.
史記·天官書
The astronomical origin: the six-star Wenchang palace before the Dipper.
元史
Records the 1316 enfeoffment that made Wenchang the empire-wide god of examinations.
文昌帝君陰騭文
The morality book attributed to him, printed in countless editions from the Song onward.