The first written laws emerged with the development of writing and complex societies:
Codex Ur-Nammu (approx. 2100–2050 BC, Sumer): The oldest known body of laws, containing criminal and economic rules.  #refChatGPT Imagine how “short” we humans have had and used writings/laws!