Where does ancestor worship come from?

Ancestor worship is developed on the basis of soul worship. Primitive people believe that the soul of ancestors has a dual effect on blood descendants, which can not only benefit future generations, but also bring disaster to future generations. Therefore, in order to let ancestors live in another world and pray for the blessing of ancestors to sacrifice, this is ancestor worship. In China's ancient literature and legends, many important ancestors were recorded, such as female ancestor Nuwa, and there were also many heroes among male ancestors, such as Chao, Sui, Fu, Shennong, Huangdi, Tai Hao, Zhuan Xu, Emperor Yao and Youyu Dishun.