In the cosmic architecture of ancient Egypt, the universe was a delicate balance between Ma'at—the principles of truth, order, and justice—and Isfet, the primordial chaos that preceded creation. At the heart of this eternal struggle was Ra, the sun god, who navigated his celestial barque across the sky by day and through the treacherous underworld of the Duat by night. However, Ra was not alone in the void. His greatest adversary was Apep, known to the Greeks as Apophis, a monstrous serpent of gargantuan proportions who embodied the non-existence and entropy that sought to reclaim the world. Apep was the personification of darkness and fire, a creature of such malevolence that his very name was often written with a knife through it in hieroglyphs to magically neutralize his power.
The daily journey of Ra was seen as a recurring victory over Apep, but the serpent was a foe that could never be truly killed, only held at bay. Each night, as the sun dipped below the horizon, Ra boarded the evening boat, the Mesektet. Accompanied by a retinue of protective deities, he entered the twelve hours of the night. It was here, in the darkest depths of the seventh hour, that the most violent confrontations occurred. Apep lived just below the horizon, or sometimes in the depths of the celestial Nile, where he would use his massive, undulating body to create sandbanks and whirlpools to ground Ra's boat. The serpent did not possess the gift of sight; instead, he felt the vibrations of the solar barque and sought to hypnotize the gods with his terrifying, fixed gaze. If Apep were to succeed in swallowing Ra, the sun would never rise again, and the world would dissolve back into the watery abyss of Nun.
While this battle was expected every night, there were rare, terrifying moments when the darkness of Apep bled into the world of the living during the day. This was the solar eclipse. To the ancient Egyptians, a sudden darkening of the sun was not a mere astronomical alignment but a cosmic emergency. It was a sign that Apep had grown so powerful that he had managed to leap from the underworld into the daylight sky, coiling his shadowy body around the Mandjet—the day boat of Ra—and attempting to swallow the sun god whole. The sudden chill of the eclipse and the eerie twilight that fell over the Nile Valley caused widespread panic. It was a breach of the natural order, a sign that the defenses of the gods were failing and that Isfet was gaining the upper hand over Ma'at.
During these moments of eclipse, the people of Egypt did not remain passive. In the Great Temple of the Sun at Heliopolis, the priests of Ra sprang into action. They performed a series of rituals known as the 'Overthrowing of Apophis.' These rituals were designed to provide magical assistance to the gods fighting in the sky. The priests would create wax models of the serpent, painting them in hideous colors and inscribing them with his many secret names. They would then spit upon these effigies, trample them underfoot, and cast them into the fire. It was believed that whatever was done to the image of the serpent on Earth would be reflected upon his spiritual essence in the celestial realm. The air in Heliopolis would be thick with the smoke of burning incense and the rhythmic chanting of spells meant to bind Apep's coils and shatter his hypnotic power.
On the solar barque itself, the battle was fierce. Ra, though the supreme light, often required the strength of others to fend off the serpent. The most unlikely of his defenders was Set, the god of storms, deserts, and violence. Although Set was often viewed as a disruptive force himself, he was the only deity strong enough to resist Apep's gaze. Standing at the prow of the barque, Set would wield a great spear, driving it into the serpent's side and forcing him to release his grip on the boat. Other gods joined the fray: the goddess Isis used her supreme magic to weave spells that bound Apep in chains; Mehen, the coiled serpent god, acted as a living shield, wrapping himself around Ra’s shrine to protect him from the demon’s reach; and Thoth, the god of wisdom, used his voice to recite the correct words of power to weaken the chaos-beast.