The right answer is:
A line of hereditary Shang rulers were heirs over control of northern China, and Shang troops fought wars with neighboring peoples and nomadic herdsmen from inner ancient China.
Shang kings also asserted their social supremacy by acting as high priests of society and leading the bone divination ceremonies. As the oracle bone texts reveal, the Shang kings were viewed as qualified members of society to offer sacrifices to their royal ancestors and to the god, Di.
Di, in their beliefs was responsible for the rain, wind, and thunder.
This is how Shang kings maintained their power over such vast territory and large population.