The Hebrew legal tradition, recorded in the Torah, introduces a shift in Mesopotamian legal philosophy: it retains lex talionis to limit disproportionate revenge, but establishes that laws come from God and no ruler is above them. It humanizes treatment of slaves and foreigners relative to Babylonian law, laying a moral foundation of equality before the law absent in earlier Mesopotamian codes.