Ur-Nammu (or Ur-Namma, Ur-Engur, Ur-Gur, ca. 2112-2095 BC middle chronology) founded the Sumerian 3rd dynasty of Ur, in southern Mesopotamia, following several centuries of Akkadian and Gutian rule. He was succeeded by his son Shulgi, after an eighteen-year reign. His death on the battle-field against the Gutians (after he had been abandoned by his army) was commemorated in a long Sumerian poetic composition.
His main achievement was state-building, and Ur-Nammu is chiefly remembered today for his legal code, the Code of Ur-Nammu, arguably the oldest surviving example in the world. He was also responsible for ordering the construction of a number of stepped temples, called ziggurats, including the Great Ziggurat of Ur. Among his military exploits were the conquest of Lagash and the defeat of his former masters at Uruk. He was eventually recognized as a significant regional ruler (of Ur, Eridu, and Uruk) at a coronation in Nippur, and is believed to have constructed buildings at Nippur, Larsa, Kish, Adab, and Umma. He was known for restoring the roads and general order after the Gutian period.