شريعة حمورابي
The Code of Hammurabi bears strong similarities to earlier Mesopotamian law collections. Many purport to have been written by rulers, and this tradition was probably widespread. Earlier law collections express their god-given legitimacy similarly. Like the Code of Hammurabi, they feature prologues and epilogues: the Code of Ur-Nammu has a prologue, the Code of Lipit-Ishtar a prologue and an epilogue, and the Laws of Eshnunna an epilogue. Also, like the Code of Hammurabi, they uphold the "one crime, one punishment" principle. The cases covered and language used are, overall, strikingly similar. Scribes were still copying e.g. the Code of Ur-Nammu when Hammurabi produced his own Code. This suggests that earlier collections may have not only resembled the Code but influenced it. Raymond Westbrook maintained that there was a fairly consistent tradition of "ancient Near Eastern law" which included the Code of Hammurabi, and that this was largely customary law. Nonetheless, there are differences: for example, Stephen Bertman has suggested that where earlier collections are concerned with compensating victims, the Code is concerned with physically punishing offenders. Additionally, the above conclusions of similarity and influence apply only to the law collections themselves. The actual legal practices from the context of each code are mysterious.