The Code of Ur-Nammu, written in Sumerian on clay tablets around 2100-2050 BCE, is the oldest surviving law code. Created during the Third Dynasty of Ur by either King Ur-Nammu or his son Shulgi, the code contains a prologue invoking deities Nanna and Utu, followed by laws addressing civil, criminal, and family matters. The code emphasized monetary compensation rather than physical punishment and helped establish legal order in the Neo-Sumerian Empire, predating Hammurabi's Code by approximately three centuries.