The Babylonian Empire was established around 2000 BC after the Amorites conquered the Akkadians and established their capital in Babylon on the Euphrates River. King Hammurabi ruled from 1792-1750 BC and expanded the empire throughout Mesopotamia and the Fertile Crescent by installing governors and judges to maintain order. Hammurabi collected and standardized existing laws into the first formal legal code, which was inscribed on stone pillars erected in major cities to ensure all citizens knew the laws and punishments. The Code of Hammurabi established principles of legal precedence and retaliation proportional to social status or crime.