The Babylonian ruler from the 18th century B.C. who created the first set of written laws that were intended to protect the weak from the strong was:

Sargon

Hammurabi

Gilgamesh

Nebuchanezzar