Hammurabi's Code was an organized list of 282 laws created by King Hammurabi of Babylonia between 1792-1750 BC to help settle disputes in all areas of life. The Code was based on the principle of "an eye for an eye" where the punishment fit the crime, though it was not equal and depended on the social class of the victim. Writing first developed in Mesopotamia around 3100 BC and was important as it allowed the recording of vital information like farm records and helped us learn about their civilization.