"The Tale"
In the beginning, there was only the primordial waters of chaos, known as Nun. The eventual source of all existence, the state of formlessness and unorganized matter before creation took place. From these vast, dark, and boundless waters, emerged a being with a humanoid body and the head of a falcon. This being would be known as the Sun God, Atum-Ra.
Atum-Ra stood upon the primordial mound, and by his own will, planted the first seed of creation, forming the sun. Not knowing how or why he had emerged from the primordial waters, he sought out the source of his awakening, only to be confronted by Maát, the primordial entity of truth, balance, order, and justice. This essence, a force transcending physical form, yet tangible in its influence, was shown to Ra as the fundamental and philosophical concept that governed order throughout time.
.
Realizing his purpose in this world, it was Ra's mission to spread the act of creation throughout the empty canvas in order to oppose the spread of Chaos from consuming the world. However, Maát had deduced Ra would need assistance, so she had allowed another being to emerge from the primordial waters as well, Ra's antithesis: Khonsu, the Moon God. In a joint effort, they formed life into this world. With his breath, Ra created Shu (air) and Geb(the Earth). Khonsu assisted by echoing Tefnut(Moisture) and Nut(the Sky), as well as forming the moon to control the earth's waters.
From this union, life had been given the opportunity to flourish throughout the world, creating both animals and humans to emerge in this first known civilization, that would later take the name of Egypt. As the world grew beyond the reach of chaos, more gods came into being to tackle the tasks of upholding the cosmic order.
The grandchildren of Ra, Born from the union of the earth and the sky, the third generation of deities were born. Osiris, the God of Judgement, Isis the Goddess of Magic, Hathor the Goddess of Love, Nephthys, the Goddess of the Night, and Set the God of Chaos.
Together the gods lived in harmony with humanity, attempting to uphold the balance between order and chaos, as they led humanity down a future of faith and prosperity. Though peace was all but guaranteed... for though Ra traversed the sky on his Solar Barge during the day, bringing light, warmth, and life to the world, during the night, he would travel towards the Duát; the Egyptian underworld. There, he would face off against his sworn foe, Apophis: the opposer to life and order, the Demon God of Chaos.
Apohpis was a being depicted as a force of pure malevolence, the primordial chaos that pre-existed creation given physical form, whose sole aim is the obliteration of order and the unmaking of creation. Taking the form of a gigantic crimson serpent or dragon, Ra fought against this being every night during the Old Kingdom. Its sole purpose was to thwart the sun god's journey and prevent the dawn of a new day.
To ensure the continuity of the world and the rising of the sun each day, Ra engaged in a nightly battle against Apophis, these two represented the struggle between order and chaos, light and darkness, and good versus evil. Ra, being the strongest, was ultimately victorious in their nightly battles, allowing the sun to rise once again and renew the cycle of life.
However, during one of their bouts, Apophis delivered a powerful blow against Ra, known as Atum-Ra at the time, splitting his Atum (Creator) and Ra (Sun) self in half. Atum, now his own entity, would take the name Amun, symbolizing his separation from Ra, the Sun. Now weakened, Ra retreated back to the god plane, appointing the strongest god at the time, Osiris, to take his place, thus fulfilling the ancient prophecy.
Osiris ruled the world for centuries, along with his fellow pantheon, the first five gods born after the great creation. This outcome enraged Set, being the oldest sibling believed himself to be the rightful ruler of Egypt. Out of jealousy, he tricked his brother Osiris, trapping him in a golden sarcophagus, cutting up his body into fourteen pieces, and scattering them around Egypt. He also attempted to murder Isis and their unborn child, Horus but was foiled by the intervention of his wife, Nephthys. Horus, once grown, managed to avenge his father by defeating Set and taking back the throne of the gods. Osiris, unable to return to the living world, was deemed the God of the Underworld and the Lord of the Dead.
Banished from the plane of the gods, Set was condemned to accompanying Ra on his Solar Barge every night in fighting against his father, Apohpis in the Underworld. After centuries of this, Set's whereabouts would remain unknown as he was condemned to remain in the mortal realm until the end of time.
Several centuries passed after these events, and the age of Gods came to an end, with them all retreating back to the heavens and allowing humanity to carve its own path. However, the gods would still interfere with humanity's development by the possession of their future kings or Pharaohs. The Gods made sure the principle of Maát was upheld by the pharaoh, making it their duty to maintain Maát in society by ruling with justice and righteousness, ensuring that order prevailed over chaos.
Both Ra and Khonshu worked on finding a way to defeat Apophis and prevent him from consuming the light, believing more gods would result in a force capable of defeating him once and for all. Ra would have taken a page from his children's birth and attempted a procreation birth with another deity, Mafdet the Beast Goddess, from which all animalistic life stemmed. With that affair, came his twin daughters; Bastet, the Goddess of Protection; Ra's left eye, and Sekhmet, the Goddess of War; Ra's right eye.
Konshu called forth the help of spirits from the spirit realm, a plane of existence the gods could reach through meditation, this plane was filled with Hekka(Magic) the prime source of power to all the gods. Khonshu provided access to the spirit world by proxy of the stars' illumination, aiding humanity in fighting off the demonic forces by allowing lesser spirits to enter their world. Humans who rose above the ranks and became demigods were awarded the chance to make connections with greater spirits. These demigods fought on behalf of humanity and the primordial gods, battling against the forces of chaos.
In time, other mythologies and groups of faith emerged, with various gods from Greek to Aztec, Hindu, and Chinese pantheons coming and going, until the concept of the Egyptian pantheon diminished over time. However, even in the current era, descendants of the Egyptian pantheon have awoken to continue the everlasting mission given to them by their ancient king long ago: to defeat Apophis and save the world from chaos.