Ur-Nammu founded the Sumerian Third Dynasty of Ur, in southern Mesopotamia, following several centuries of Akkadian and Gutian rule. His main achievement was state-building, and Ur-Nammu is chiefly remembered today for his legal code, the Code of Ur-Nammu, the oldest known surviving example in the world. He held the titles of "King of Ur, and King of Sumer and Akkad".