The earliest religion(s) had creation epics. Perhaps the earliest being the Akkadian Atrahasis creation epic. In short, Atrahasis tells the story of how the gods created man as a labour-force until eventually one of the top gods, the cruel and capricious Enlil, ultimately decides to eradicate humankind with a flood.
The kinder water god, Enki, does not agree and secretly warns a man - instructing him to repurpose his house to build what can only be described as an Ark.
The Sumerian version of this same story from circa 1600 BCE, has been named “The Eridu Genesis”.
The subsequent Enuma Elish creation epic starring Tiamat and Bel from Mesopotamia also significantly formed the inspiration for the jewish Old Testament creation story.
It is well established that the Old Testament was very influenced by these older religions and texts.
In the widely circulated Enuma Elish, we begin with darkness and void over primordial waters.
These waters having two aspects, the God Apsu is fresh water, below is the demiurge, the Goddess Tiamat who is salt water. From these emerge a generation of younger Gods / Goddesses.
Genesis 1:2: “ Now the earth was unformed and void, and darkness was upon the face of the deep; and the spirit of god hovered over the face of the waters.”
Ultimately, the god called Bel, (whose brother Enki had already killed the father Apsu) slays his mother Tiamat and splits Her in two to create the heavens and the earth, bringing order from chaos.
In genesis, “god” divides the abyssian water in two, in the same way that Bel divides Tiamat in two; both result in one half for the heavens/sky and one half for earth.
Proverbs 8:27:
”When he established the heavens, I was there; when he set a circle upon the face of the deep”
Enuma Elish:
”The Lord spread out his net and made it encircle her”
The Mesopotamian goddess Tiamat ultimately became the sea-monster Leviathan in the Jewish development of the tradition. A sea monster at war with Yahweh. Tiamat at war with Bel. In turn of course, Leviathan became known as a demon in medieval christianity.
Further, Hermann Gunkel (1862-1932), an “old testament” scholar, noted that the descriptor “Primordial Deep” written and enumerated in Hebrew Gematria leads to the number 666, the number of the beast, the number of the great serpent in Judaism/Christianity.
In this way, the Goddess of Mesopotamian creation becomes the opposer of god in the new religion of Judaism and this is subsequently extended into the even newer Christianity.