The theory of the Twelve Ancestors originated from Buddhism and Taoism, which was invented by the author of the novel. There are no religious classics and no official history, which are described in unofficial history.
According to legend, Pangu obeyed Hong Jun's imperial edict, chopped chaos with Pangu's banner, set fire to Feng Shui with Tai Chi, and turned turbidity into dry Kun, thus opening up a vast world and endlessly evolving six divisions in the wheel of karma. Pangu was unable to support the power of creating the world. The Yuan God created the world in Sanqing (Taishang Laojun, Yuanshi Tianzun and Tian Tong). Most of Xue Jing became twelve ancestors, and a few of them circulated in the six divisions of the wheel of karma.