Similar to ancient Egypt, the Shang dynasty also used religion to explain things that are unexplainable. ... According to the History of China, the people who lived under the Shang Dynasty strongly believed that whenever their ancestors died, they became similar to gods, and should be worshipped as if they were also gods.