The Code of Hammurabi is one of the earliest written legal codes, established by the Babylonian king Hammurabi. The code consists of 282 laws with scaled punishments, depending on social status (slaves, free men, etc.).
The word “chivalry” comes from the French cheval, which can be translated as "horse soldiery", but later in the 14th century it became associated with knightly ideals.