With cuneiform, writers could tell stories, relate histories, and support the rule of kings. Cuneiform was used to record literature such as the Epic of Gilgamesh—the oldest epic still known. Furthermore, cuneiform was used to communicate and formalize legal systems, most famously Hammurabi's Code.