Title: Hammurabi
Content:  Hammurabi was honored above all other kings of the second millennium BC and he received the unique honor of being declared to be a god within his own lifetime. The personal name "Hammurabi-ili" meaning "Hammurabi is my god" became common during and after his reign. In writings from shortly after his death, Hammurabi is commemorated mainly for three achievements: bringing victory in war, bringing peace, and bringing justice. Hammurabi's conquests came to be regarded as part of a sacred mission to spread civilization to all nations. A stele from Ur glorifies him in his own voice as a mighty ruler who forces evil into submission and compels all peoples to worship Marduk. The stele declares: "The people of Elam, Gutium, Subartu, and Tukrish, whose mountains are 
Title: Code of Hammurabi
Content:  Hammurabi (or Hammurapi), the sixth king of the Amorite First Dynasty of Babylon, ruled from 1792 to 1750 BC (middle chronology). He secured Babylonian dominance over the Mesopotamian plain through military prowess, diplomacy, and treachery. When Hammurabi inherited his father Sin-Muballit's throne, Babylon held little local sway; the local hegemon was Rim-Sin of Larsa. Hammurabi waited until Rim-Sin grew old, then conquered his territory in one swift campaign, leaving his organisation intact. Later, Hammurabi betrayed allies in Eshnunna, Elam, and Mari to gain their territories. Hammurabi had an aggressive foreign policy, but his letters suggest he was concerned with the welfare of his many subjects and was interested in law and justice. He commissioned extensive construction works, and in his letters, he frequently presents himself as his people's shepherd. Justice is also a theme of the prologue to the Code, and "the word translated 'justice' [ešērum]... is one whose root runs through both prologue and epilogue".
Title: Hammurabi
Content:  Hammurabi (c. 1810) was the sixth king of the First Babylonian dynasty of the Amorite tribe, reigning from c. 1792 BC to c. 1750 BC (according to the Middle Chronology). He was preceded by his father, Sin-Muballit, who abdicated due to failing health. During his reign, he conquered Elam and the city-states of Larsa, Eshnunna, and Mari. He ousted Ishme-Dagan I, the king of Assyria, and forced his son Mut-Ashkur to pay tribute, bringing almost all of Mesopotamia under Babylonian rule. Hammurabi is best known for having issued the Code of Hammurabi, which he claimed to have received from Shamash, the Babylonian god of justice. Unlike earlier Sumerian law codes, such 
Title: Hammurabi
Content:  as a great conqueror who spread civilization and forced all peoples to pay obeisance to Marduk, the national god of the Babylonians. Later, his military accomplishments became de-emphasized and his role as the ideal lawgiver became the primary aspect of his legacy. For later Mesopotamians, Hammurabi's reign became the frame of reference for all events occurring in the distant past. Even after the empire he built collapsed, he was still revered as a model ruler, and many kings across the Near East claimed him as an ancestor. Hammurabi was rediscovered by archaeologists in the late nineteenth century and has since been seen as an important figure in the history of law.
Title: Hammurabi
Content:  hymn finally declares: "I am Hammurabi, the king of justice." In later commemorations, Hammurabi's role as a great lawgiver came to be emphasized above all his other accomplishments and his military achievements became de-emphasized. Hammurabi's reign became the point of reference for all events in the distant past. A hymn to the goddess Ishtar, whose language suggests it was written during the reign of Ammisaduqa, Hammurabi's fourth successor, declares: "The king who first heard this song as a song of your heroism is Hammurabi. This song for you was composed in his reign. May he be given life forever!" For centuries after his death, Hammurabi's laws continued to be copied by scribes as part of their writing exercises and they were even partially translated into Sumerian.
Title: Code of Hammurabi
Content:  himself na'dum, "pious" (lines 61, 149, 241, and 272). The metaphor of Hammurabi as his people's shepherd also recurs. It was a common metaphor for ancient Near Eastern kings, but is perhaps justified by Hammurabi's interest in his subjects' affairs. His affinities with many different gods are stressed throughout. He is portrayed as dutiful in restoring and maintaining temples and peerless on the battlefield. The list of his accomplishments has helped establish that the text was written late in Hammurabi's reign. After the list, Hammurabi explains that he fulfilled Marduk's request to establish "truth and justice" (kittam u mīšaram) for the people (292–302), although the prologue never directly references the laws. The prologue ends "at that time:" (303: inūmišu) and the laws begin.
Title: Hammurabi
Content:  Hammurabi was an Amorite First Dynasty king of the city-state of Babylon, and inherited the power from his father, Sin-Muballit, in c. 1792 BC. Babylon was one of the many largely Amorite ruled city-states that dotted the central and southern Mesopotamian plains and waged war on each other for control of fertile agricultural land. Though many cultures co-existed in Mesopotamia, Babylonian culture gained a degree of prominence among the literate classes throughout the Middle East under Hammurabi. The kings who came before Hammurabi had founded a relatively minor City State in 1894 BC, which controlled little territory outside of the city itself. Babylon 
Title: Code of Hammurabi
Content:  the Babylonian wind god Enlil, chose Hammurabi to be Babylon's king. Hammurabi was to rule "to prevent the strong from oppressing the weak" (37–39: dannum enšam ana lā ḫabālim). He was to rise like Shamash over the Mesopotamians (the ṣalmāt qaqqadim, literally the "black-headed people") and illuminate the land (40–44). Hammurabi then lists his achievements and virtues (50–291). These are expressed in noun form, in the Akkadian first person singular nominal sentence construction "[noun]... anāku" ("I am [noun]"). The first nominal sentence (50–53) is short: "I am Hammurabi, the shepherd, selected by the god Enlil" (ḫammurabi rē'ûm nibīt enlil anāku). Then Hammurabi continues for over 200 lines in a single nominal sentence with the anāku delayed to the very end (291). Hammurabi repeatedly 
Title: Hammurabi I
Content:  Hammurabi was the son of Yarim-Lim I, and his mother was Queen Gashera. His private secretary as a crown prince was Sin-Abushu and is known from the tablets of Mari. Nothing else is known about him before he ascended the throne, following the death of his father in ca. 1764 BC.
Title: Hammurabi I
Content:  Hammurabi I (reigned c. 1764 BC - Middle chronology) is the third attested king of Yamhad (Halab).

Question: who is hammurabi and what did he do?
Answer: Monarch.