King Lipit-Ishtar of Isin created a written legal code around 1870-1860 BCE, making it the second oldest surviving legal code. Written in Sumerian on clay tablets, it contained legal articles addressing personal rights, marriage, inheritance, property contracts, and civil matters. The code included a prologue invoking gods An and Enlil to establish divine authority, and an epilogue. It served as a legal framework between the earlier Code of Ur-Nammu and later Code of Hammurabi, influencing Mesopotamian law for centuries.