Hammurabi was an Amorite First Dynasty king of the city-state of Babylon, and inherited the power from his father, Sin-Muballit, in c. 1792 BC [REF].
The first few decades of Hammurabi's reign were quite peaceful.