Apep (// or //) or Apophis (//; Ancient Greek: Άποφις; also spelled Apepi or Aapep) was an evil god in ancient Egyptian religion depicted as a snake/serpent and a dragon, the deification of darkness and chaos (ı͗zft in Egyptian), and thus opponent of light and Ma'at (order/truth), whose existence was believed from the 8th Dynasty (mentioned at Moalla) onwards. His name is reconstructed by Egyptologists as *ʻAʼpāpī, as it was written ꜥꜣpp(y) and survived in later Coptic as Ⲁⲫⲱⲫ Aphōph.
Ra was the solar deity, bringer of light, and thus the upholder of Ma'at. Apep was viewed as the greatest enemy of Ra, and thus was given the title Enemy of Ra.
As the personification of all that was evil, Apep was seen as a giant snake/serpent, or occasionally as a dragon in later years, leading to such titles as Serpent from the Nile and Evil Lizard. Some elaborations even said that he stretched 16 yards in length and had a head made of flint. Already on a Naqada I (ca. 4000 BC) C-ware bowl (now in Cairo) a snake was painted on the inside rim combined with other desert and aquatic animals as a possible enemy of a deity, possibly a solar deity, who is invisibly hunting in a big rowing vessel.