The Shang Dynasty ruled over ancient China from around 1523 BCE to 1028 BCE. They established their capital at Anyang, where kings were surrounded by courts and performed rituals to strengthen the kingdom. The Shang were largely an agricultural society led by a strong monarchy and army. They left behind artifacts including oracle bones, early examples of Chinese writing, that provided answers to questions through cracks interpreted by priests. The Shang declined after 600 years of rule due to difficulties governing a growing population, leading to their overthrow by the Zhou Dynasty in around 1100 BCE.