The legendary biography of Zhao Gongming is composite, layering successive traditions from the
Han dynasty through the
Ming dynasty. The earliest stratum identifies him as a plague-causing demon-marshal; the
Six Dynasties compendium
Soushen Ji records him as one of three generals appointed by the Heavenly Emperor to retrieve human souls. The transformation from a plague-marshal into a wealth-bestowing deity took place principally during the
Song dynasty and was canonised in the
Ming dynasty novel
Fengshen Yanyi (Investiture of the Gods), in which Zhao is killed in battle and posthumously deified as the central Lord of the Dark Altar with four wealth-attendant subordinates. During the
Jin dynasty, the
Soushen Ji recorded that "the Heavenly Emperor appointed three generals, Zhao Gongming and Zhong Shiji, each to supervise the subjugation of spirits and the retrieval of human souls". According to the
Biographies of Deities and Immortals (), Zhao Gongming served as the leader of the eight ghostly legions, roaming throughout the mortal realm and causing the violent deaths of countless people. The Grand Supreme Elder Lord (
Taishang Laojun) commanded Master Zhang to address this. The
Annotated Compilation of Langya Gold and Stone Inscriptions () states the origin of the God of Wealth, known by the surname Zhao Minglang and the courtesy name Gongming. In a distant era, when the heavens bore ten suns, the Emperor commanded the archer
Hou Yi to shoot down nine of them. Eight of these suns descended into the sea and were transformed into immortals, known as the Eight Immortals of the Sea. The remaining sun fell upon Tiantai Mountain, taking the form of a stone known as the Sun Stone. Its essence later assumed human form. As he matured, he journeyed to Emei Mountain to cultivate and acquire the arts of immortality. During the conflicts between the Shang and Zhou Dynasties, Prime Minister
Wen Zhong of the Shang Dynasty invited him to descend from his mountain abode and assist in the battle. However, the Shang forces faced defeat, and
Jiang Ziya subsequently caused Zhao Gongming's death through ritual magic. After his death, Jiang Ziya posthumously deified him as the God of Wealth. He was further honored with the title of Xuantan Zhenjun (), and his essence returned to Tiantai Mountain. In his divine role, Zhao Gongming governs the celestial beings responsible for wealth, the deities associated with the reception of treasures, emissaries for wealth attraction, and the officials of prosperity. Subsequently, a temple was established at the base of the sacred stone to honor him, and Tiantai Mountain was also renamed Mount Cai (). ==In
Fengshen Yanyi==