Answer:
The Code of Hammurabi, the oldest code of written laws of mankind, was responsible for the centralization of his reign, since it covered the most different legal fields: civil, penal, labor, commercial, etc. He was also responsible for bringing the first vestiges of the Law of Talion (Lex talionis) that had as principle “eye for an eye, tooth for a tooth”.
Let us see with what eyes the society, in which the Code of Hammurabi prevailed, probably between the eighteenth and seventeenth centuries BC, saw the woman, observing some articles in chapters IX and X.
• If a man took a wife for himself but did not write a contract, she will not be taken as his wife.
• If a man's wife was found sleeping with another man, the two will be tied up and thrown into the water (drowned), but if he forgives his wife, the king will also forgive his servant.
• If a man's wife is accused by him, but has not been caught with another man, she will swear an oath before God and return to her home.
• If a man's wife was fingered because of another man, but there was no evidence, she must jump in the river for her husband.
• If a man left the house quietly, but left what to eat, his wife will take care of himself and the house, and will not enter any other man's house. Otherwise, it will be thrown into the water.
• If a man left the house quietly, but left nothing to eat, his wife could enter another man's house, without any fault.
• If a man left the house quietly, but left nothing to eat, his wife could enter another man's house, without any fault. And if she has had children with the second, when the husband returns, she will return to him, leaving the children with the father.
• If a man left his city and ran away, and his wife entered another man's house, when he returns, she will no longer belong to him.
• If a man abandoned his wife because he did not have children, he must return her dowry and half of the assets, and she will be responsible for the education of the children. After educating them and giving them the corresponding share of assets, you can remarry.
• If a man's wife has decided to leave, and has been a terrible wife, and this has been proven against her, her husband may repudiate her without giving her anything, either for the trip or as compensation for the separation. If he doesn't want to repudiate her, he can marry another woman and have her at home as a slave.
• If a woman, out of dislike of her husband, no longer wants to have sex with him, her case will go to trial. If she was a good wife and he was a bad husband, having humiliated her, she will take her dowry and return to her father's house.
• But if she was a bad wife, having dishonored her husband, she will be thrown into the water.
• If a man has taken a wife and she has contracted a contagious disease, he may marry another, but his sick wife will live in the house and be supported by her husband for as long as he lives.
• And if she doesn't want to live in the company of her husband, she will have the dowry she brought from her father's house and will leave.
• If a man left his property to his wife, according to a sealed document, after his death, the children will not be able to claim anything against her, who will be able to give her inheritance to the son she chooses, but never to a stranger.
• If after the woman has lived in a man's house, and a debt has fallen on both, the couple must pay for it.
• If a woman has her husband killed because of another man, she will be impaled.
• If the fiancé has already paid the dowry to the girl's father, but felt attracted to another woman, he will return everything that was given to her father.
• But if it is the father who has decided not to give his daughter in marriage anymore, he will have to repay twice everything he received as a dowry.
• If a man's wife died, his father will not be able to claim the dowry, as he will pass it on to his children.
• But if she had no children, her dowry will belong to her father.
• If a man's first wife fathered children and the slave also, and he recognized the slave's children, when he dies, they will also inherit their property.
• But if he did not recognize the slave's children, after his death, they will have no right to inherit. They will only be released together with the mother.