 Shangdi was not just a tribal but instead an unambiguously good moral force, exercising its power according to exacting standards.It could thus be lost and even "inherited" by a new dynasty, provided they upheld the proper rituals.Nonetheless, the connection of many rituals with the Shang clan meant that Shang nobles continued to rule several locations (despite their rebellions) and to serve as court advisors and priests.