In the river system of Mesopotamia, after the Sumers, two other great civilizations rose to power: the Babylonians with their king Hammurabi (famous for the Codex Hammurabi) and the Assyrians. Just to the east was the long-lasting civilization of Elam.