The creation of humanity in Mesopotamian myth answers a labor question: the gods, rebelling against the work of the world (the digging and hauling), need workers — so Enki and the birth-goddess shape people from clay and the blood of a slaughtered god, "created to bear the gods' burden": the Atra-hasis prologue's theology, retold in the Enūma eliš with Kingu's blood.
Domain
The making of people for the gods' labor: clay and a god's blood
First Attested
The Old Babylonian Atra-hasis (early second millennium); Sumerian debates and the Enki-and-Ninmah contest earlier in theme
Ea/Enki, the birth-goddess (Mami/Ninhursag), the slain ringleader-god
Core Themes
The strike and the fix: the lesser gods' work-crew rebels; Ea's solution — a substitute worker made of clay and a slain god's flesh-and-blood: the first humans born of the birth-goddess in series, purpose-built (see the purpose of humans).
The variants: the Enūma eliš's Kingu-blood version (humanity made from the rebel leader's substance); the Sumerian Enki-and-Ninmah contest (the shaping's flawed drafts and their fates) — one theology, several tellings — the constant being the point: people exist to carry the load, and the gods' rest is our clock's origin — the seventh-day rest's distant Mesopotamian cousin in the comparative literature.
The modern spin: the ancient-astronaut literature reads this labor-origin as literal genetic engineering by visiting beings — a modern interpretation of the same texts, documented as such on the genetic engineering page.
Evidence & Sources
The creation prologues are among the best-translated passages of Babylonian literature; the purpose-of-people theme explicit in Atra-hasis's own lines.