Itâs not the earliest known code of laws. Hammurabiâs dictates are often cited as the oldest written laws on record, but they were predated by at least two other ancient codes of conduct from the Middle East.