Hammurabi
A king was declared a god while still alive, and his laws shaped justice for centuries. Hammurabi ruled Babylon from around 1792 to 1750 BCE. He conquered rival kingdoms and created one of the oldest and longest law codes ever discovered. He is remembered more for his laws than for his wars.
Adapted from Wikipedia: https://en.wikipedia.org/wiki/Hammurabi