Ur-Ninurta then succeeded Lipit-Ištar. Some documents and royal inscriptions from his time have survived, however; Lipit-Ištar is mostly known due to the Sumerian language hymns that were written in his honor, as well as a legal code written in his name (preceding the famed Code of Hammurabi by about 100 years)—which were used for school instruction for hundreds of years after Lipit-Ištar's death. The annals of Lipit-Ištar's reign recorded that he also repulsed the Amorites.