Elam
Shimashki dynasty

About a century later, the Sumerian king Shulgi of the Neo-Sumerian Empire retook the city of Susa and the surrounding region. During the first part of the rule of the Simashki dynasty, Elam was under intermittent attack from the Sumerians of Mesopotamia and also Gutians from northwestern Iran, alternating with periods of peace and diplomatic approaches. The Elamite state of Simashki at this time also extended into northern Iran, and possibly even as far as the Caspian Sea. Shu-Sin of Ur gave one of his daughters in marriage to a prince of Anshan. But the power of the Sumerians was waning; Ibbi-Sin in the 21st century did not manage to penetrate far into Elam, and in 2004 BC, the Elamites, allied with the people of Susa and led by king Kindattu, the sixth king of Simashki, managed to sack Ur and lead Ibbi-Sin into captivity, ending the third dynasty of Ur. The Akkadian kings of Isin, successor state to Ur, managed to drive the Elamites out of Ur, rebuild the city, and to return the statue of Nanna that the Elamites had plundered.
punctuation:no_comma