Introduction
Apophis (Apep) was the great serpent of chaos in ancient Egyptian mythology, eternal enemy of the sun god Ra, who attempted nightly to destroy Ra's barque as it passed through the underworld.
Role in Egyptian Cosmology
Apophis represented the forces of chaos (isfet) opposed to the cosmic order (ma'at) maintained by Ra and the other gods. Every night, as Ra's solar barque traveled through the underworld (the Duat), Apophis sought to swallow the sun and plunge the world into permanent darkness; he was repelled nightly by Ra's defenders, most prominently the god Set, who speared or otherwise fought off the serpent so the sun could rise again each morning.
Rituals Against Apophis
Egyptian religious practice included specific apotropaic rituals, recorded in texts such as the "Book of Overthrowing Apophis," in which priests would ritually destroy wax or clay images of the serpent, spit on them, and burn them, acting out and reinforcing the cosmic battle to ensure the sun's continued rising. Apophis was never fully destroyed in this cosmology; the battle against him was understood as perpetual and nightly, a cyclical rather than a once-for-all victory.
This entry follows standard Egyptological accounts of the Apophis myth and its associated ritual texts.