Hammurabi's Code is one of the most famous examples of the ancient precept of “lex talionis,” or law of retribution, a form of retaliatory justice commonly associated with the saying “an eye for an eye.” Under this system, if a man broke the bone of one his equals, his own bone would be broken in return.
If one break a man's bone, they shall break his bone. If one destroy the eye of a freeman or break the bone of a freeman he shall pay one gold mina. If one destroy the eye of a man's slave or break a bone of a man's slave he shall pay one-half his price."