The Mesopotamian divine hierarchy is a court, not a family tree alone: An the retired sovereign, Enlil the executive, Ea the counselor in the deep — then the great gods in ranks (the Igigi and Anunnaki), the city's patrons, the personal gods, and below them the spirits and demons: a bureaucracy of powers the lists fixed and the politics kept rearranging.
Domain
The ranked orders of the gods: sovereign, executive, ranks, staff — and the demons below
First Attested
God-lists from the third-millennium Fara lists to An = Anum
Primary Texts
The god-lists; Enūma eliš (the fifty names' promotion); hymns
The great triad: An (kingship, heaven), Enlil (the earth's command), Ea (the abzu's wisdom) with the mother-goddess — the heads of the order the city-traditions all cited.
Rank and file: the Igigi above, the Anunnaki below, the city-patrons in their seats, and each person's own god (see patron deities) — the court's business delegated down to the individual's address.
Promotion politics: the Enūma eliš promotes Marduk to the head — the fifty names absorbing the elders' offices; Assyria's version installed Ashur instead: theology tracking the empire that commissioned it — the pantheon's org chart redrawn whenever the map changed hands.
The demons at the base: below the gods proper, the spirits and demons — the utukku, Lamashtu, the plague-bringing gallas — filed in the same lists and incantations: the hierarchy reaching down to the fever's agent and the bedroom's danger (see demonic figures).
Evidence & Sources
The god-list genre (Fara, Abu Salabikh, Lagash, and the great An = Anum series) is the hierarchy's documentary spine — the pantheon as a filed administration, rank by rank.