The Code of Hammurabi was established by the Babylonian king Hammurabi around 1780 BCE. It contained one of the earliest known codes of law. Some of the laws addressed property crimes, physical harm or death to individuals of different social classes, and legal procedures for accusations and trials. Punishments ranged from fines to death depending on the crime and social status of the victim. The Code helped establish order and justice in Babylonian society.