The Shang Dynasty was China's first literate civilization and ruled from around 1600-1046 BCE. They developed advanced bronze-working, bureaucracy, and rammed earth walls. The Shang heartland was along the Yellow River and traditionally dates from 1766 BCE when it was founded by Cheng Tang until its defeat by the Zhou at the Battle of Muye in 1045 BCE. The Shang made significant cultural contributions such as developing writing, bronze-working, and leaving behind oracle bones used for divination.