There are interesting references to the military successes of his reign in the prologue to the legal Code. It is related that when he "avenged Larsa", the seat of Rim-Sin, he restored there the temple of the sun god. Other temples were built up at various ancient centres, so that these cultural organizations might contribute to the welfare of the localities over which they held sway. At Nippur he thus honoured Enlil, at Eridu the god Ea, at Ur the god Sin, at Erech the god Anu and the goddess Nana (Ishtar), at Kish the god Zamama and the goddess Ma-ma, at Cuthah the god Nergal, at Lagash the god Nin-Girsu, while at Adab and Akkad, "celebrated for its wide squares", and other centres he carried out religious and public works. In Assyria he restored the colossus of Ashur, which had evidently been carried away by a conqueror, and he developed the canal system of Nineveh.

Apparently Lagash and Adab had not been completely deserted during his reign, although their ruins have not yielded evidence that they flourished after their fall during the long struggle with the aggressive and plundering Elamites.

Hammurabi referred to himself in the Prologue as "a king who commanded obedience in all the four quarters". He was the sort of benevolent despot whom Carlyle on one occasion clamoured vainly for--not an Oriental despot in the commonly accepted sense of the term. As a German writer puts it, his despotism was a form of Patriarchal Absolutism. "When Marduk (Merodach)", as the great king recorded, "brought me to direct all people, and commissioned me to give judgment, I laid down justice and right in the provinces, I made all flesh to prosper."[[279]] That was the keynote of his long life; he regarded himself as the earthly representative of the Ruler of all--Merodach, "the lord god of right", who carried out the decrees of Anu, the sky god of Destiny.

The next king, Samsu-iluna, reigned nearly as long as his illustrious father, and similarly lived a strenuous and pious life. Soon after he came to the throne the forces of disorder were let loose, but, as has been stated, he crushed and slew his most formidable opponent, Rim-Sin, the Elamite king, who had gathered together an army of allies. During his reign a Kassite invasion was repulsed. The earliest Kassites, a people of uncertain racial affinities, began to settle in the land during Hammurabi's lifetime. Some writers connect them with the Hittites, and others with the Iranians, vaguely termed as Indo-European or Indo-Germanic folk. Ethnologists as a rule regard them as identical with the Cossaei, whom the Greeks found settled between Babylon and Media, east of the Tigris and north of Elam. The Hittites came south as raiders about a century later. It is possible that the invading Kassites had overrun Elam and composed part of Rim-Sin's army. After settled conditions were secured many of them remained in Babylonia, where they engaged like their pioneers in agricultural pursuits. No doubt they were welcomed in that capacity, for owing to the continuous spread of culture and the development of commerce, rural labour had become scarce and dear. Farmers had a long-standing complaint, "The harvest truly is plenteous, but the labourers are few".[[280]] "Despite the existence of slaves, who were for the most part domestic servants, there was", writes Mr. Johns, "considerable demand for free labour in ancient Babylonia. This is clear from the large number of contracts relating to hire which have come down to us.... As a rule, the man was hired for the harvest and was free directly after. But there are many examples in which the term of service was different--one month, half a year, or a whole year.... Harvest labour was probably far dearer than any other, because of its importance, the skill and exertion demanded, and the fact that so many were seeking for it at once." When a farm worker was engaged he received a shekel for "earnest money" or arles, and was penalized for non-appearance or late arrival.[[281]]

So great was the political upheaval caused by Rim-Sin and his allies and imitators in southern Babylonia, that it was not until the seventeenth year of his reign that Samsu-iluna had recaptured Erech and Ur and restored their walls. Among other cities which had to be chastised was ancient Akkad, where a rival monarch endeavoured to establish himself. Several years were afterwards spent in building new fortifications, setting up memorials in temples, and cutting and clearing canals. On more than one occasion during the latter part of his reign he had to deal with aggressive bands of Amorites.

The greatest danger to the Empire, however, was threatened by a new kingdom which had been formed in Bit-Jakin, a part of Sealand which was afterwards controlled by the mysterious Chaldeans. Here may have collected evicted and rebel bands of Elamites and Sumerians and various "gentlemen of fortune" who were opposed to the Hammurabi regime. After the fall of Rim-Sin it became powerful under a king called Ilu-ma-ilu. Samsu-iluna conducted at least two campaigns against his rival, but without much success. Indeed, he was in the end compelled to retreat with considerable loss owing to the difficult character of that marshy country.

Abeshu, the next Babylonian king, endeavoured to shatter the cause of the Sealanders, and made it possible for himself to strike at them by damming up the Tigris canal. He achieved a victory, but the wily Ilu-ma-ilu eluded him, and after a reign of sixty years was succeeded by his son, Kiannib. The Sealand Dynasty, of which little is known, lasted for over three and a half centuries, and certain of its later monarchs were able to extend their sway over part of Babylonia, but its power was strictly circumscribed so long as Hammurabi's descendants held sway.

During Abeshu's reign of twenty-eight years, of which but scanty records survive, he appears to have proved an able statesman and general. He founded a new city called Lukhaia, and appears to have repulsed a Kassite raid.

His son, Ammiditana, who succeeded him, apparently inherited a prosperous and well-organized Empire, for during the first fifteen years of his reign he attended chiefly to the adornment of temples and other pious undertakings. He was a patron of the arts with archaeological leanings, and displayed traits which suggest that he inclined, like Sumu-la-ilu, to ancestor worship. Entemena, the pious patesi of Lagash, whose memory is associated with the famous silver vase decorated with the lion-headed eagle form of Nin-Girsu, had been raised to the dignity of a god, and Ammiditana caused his statue to be erected so that offerings might be made to it. He set up several images of himself also, and celebrated the centenary of the accession to the throne of his grandfather, Samsu-iluna, "the warrior lord", by unveiling his statue with much ceremony at Kish. About the middle of his reign he put down a Sumerian rising, and towards its close had to capture a city which is believed to be Isin, but the reference is too obscure to indicate what political significance attached to this incident. His son, Ammizaduga, reigned for over twenty years quite peacefully so far as is known, and was succeeded by Samsuditana, whose rule extended over a quarter of a century. Like Ammiditana, these two monarchs set up images of themselves as well as of the gods, so that they might be worshipped, no doubt. They also promoted the interests of agriculture and commerce, and incidentally increased the revenue from taxation by paying much attention to the canals and extending the cultivatable areas.

But the days of the brilliant Hammurabi Dynasty were drawing to a close. It endured for about a century longer than the Twelfth Dynasty of Egypt, which came to an end, according to the Berlin calculations, in 1788 B.C. Apparently some of the Hammurabi and Amenemhet kings were contemporaries, but there is no evidence that they came into direct touch with one another. It was not until at about two centuries after Hammurabi's day that Egypt first invaded Syria, with which, however, it had for a long period previously conducted a brisk trade. Evidently the influence of the Hittites and their Amoritic allies predominated between Mesopotamia and the Delta frontier of Egypt, and it is significant to find in this connection that the "Khatti" or "Hatti" were referred to for the first time in Egypt during the Twelfth Dynasty, and in Babylonia during the Hammurabi Dynasty, sometime shortly before or after 2000 B.C. About 1800 B.C. a Hittite raid resulted in the overthrow of the last king of the Hammurabi family at Babylon. The Hyksos invasion of Egypt took place after 1788 B.C.