Hammurabi therefore returned north , stopping the unrest , and defeating Eshnunna .
As Hammurabi was assisted during the war in the south by his allies from the north , the absence of soldiers in the north led to unrest . Continuing his expansion , Hammurabi turned his attention northward , quelling the unrest and soon after crushing Eshnunna .