Final answer:
Hammurabi was the Babylonian ruler responsible for the first known written code of law, known as the Code of Hammurabi.
Step-by-step explanation:
The Babylonian ruler responsible for the first known written code of law was Hammurabi. He ruled over Babylonia from 1792 BC to 1750 BC and codified a set of laws known as the Code of Hammurabi. These laws were inscribed on a stone pillar and were displayed in public for all to see.
Learn more about Babylonian ruler and first written code of law