The Investiture of the Gods was an ancient Chinese novel that described the war between the Shang and Zhou dynasties at the end of the Zhou Dynasty. Nezha was a heroic character in the novel. He performed well in the war and was conferred the title of Heavenly Demon God.