Ancient Chinese civilization developed along major rivers like the Yellow River and Yangtze River. Religion and government were closely intertwined in early China. The Shang dynasty practiced polytheism and ancestral worship to appease gods and ensure good harvests. They communicated with gods through oracle bones to predict disasters. The Zhou dynasty overthrew the Shang using the concept of the Mandate of Heaven to justify their rule, and established a feudal system giving power to local lords in exchange for loyalty and military support.