Several versions concerning the political affiliations and modes of deification of Caishen's incarnations are in circulation. According to legend,
Bi Gan — the
Shang dynasty prince and minister put to death by his nephew
Di Xin — had a wife of the
Chen clan and a son named Quan (). After Bi Gan's execution, his wife and son fled into the woods; Quan was later honoured by
King Wu of Zhou as the founding ancestor of the
Lin clan. Bi Gan's deification as a wealth god is one of the older strata of the Caishen tradition and is dramatised at length in the
Ming dynasty novel
The Investiture of the Gods.
The Caishen of all directions The "Five Roads Wealth Gods" (;
wǔ lù cáishén) tradition, in which Zhao Gongming functions as central deity flanked by four assistants for the cardinal directions, derives principally from the
Ming dynasty novel
The Investiture of the Gods and from the religious compendium
Sanjiao Soushen Daquan. Caishen sometimes appears as a
door god in
Chinese and
Taoist temples, usually in partnership with the
Burning-Lamp Taoist. ==Civil and Military Wealth Gods==