First of all, Hammurabi`s code protected the families in Mesopotamia. For example, Law 148 claims that if you divorce a diseased wife, you are obliged to take care of her. Also, if a father tries to disown his son and his son has no misdemeanors, he shall not disown his kid. Based on what I read, Hammurabi`s Code protected the weak and innocent family members.
Secondly, the laws took care of personal property. For instance, in Law 23 if a robber has not been caught and the victim has claimed this robbery before the gods, the city and the mayor