text: In order to consolidate its position , Elam tried to start a war between Hammurabi 's Babylonian kingdom and the kingdom of Larsa . Hammurabi and the king of Larsa made an alliance when they discovered this duplicity and were able to crush the Elamites , although Larsa did not contribute greatly to the military effort .
simplified: However , Hammurabi instead made an alliance with Larsa against Elam .