Hammurabi worked for the king of Babylonia.
 Even after the fall of the Amorite Dynasty, however, Hammurabi was still remembered and revered
In order to consolidate its position, Elam tried to start a war between Hammurabi's Babylonian kingdom and the kingdom of Larsa

