Eqyptian mythology:

Egyptian god of night. The *serpent* of night. The nemesis of sun god Ra.
By the story, every year as the land dried before the floods, Apophis ate life from those regions. And subsequently, when the floods came, Ra won over Apophis.

See also Set, Seth, Sutekh