Ra is the Egyptian sun god, usually shown falcon-headed and crowned with a solar disk, and his daily routine is the actual engine behind Egyptian cosmology rather than a side detail of it. Every day he sails across the sky in his solar barque, and every night he continues the same journey through the underworld, the Duat, which means the sun rising each morning isn’t automatic. It’s the result of Ra surviving the trip.
He doesn’t survive it uncontested. Each night he faces Apep, a monstrous serpent embodying raw chaos, who attacks the barque in an attempt to stop the sun from ever returning. Ra wins every single night, which is precisely why the sun comes up the next morning, and the Egyptians didn’t take that outcome for granted the way a culture with a more mechanical view of astronomy might. The sunrise was a reported victory, not a guaranteed event.
Ra isn’t invincible everywhere, though, and two of his best-known myths both involve him losing control of something he assumed was secure. Isis, wanting power equal to his, poisons him with a snake made from his own spit and earth and refuses to heal him until he hands over his true name, the actual source of his authority, which he eventually does rather than die slowly from his own venom. And when he sends out his own rageful eye, in the form of the goddess Sekhmet, to punish humanity for disobedience, he loses the ability to call her back once the slaughter starts, and has to resort to dying beer red to trick her into stopping. The sun god who wins every night against pure chaos is, in his other stories, a figure who keeps getting outmaneuvered by exactly the kind of clever, indirect pressure a straightforward cosmic battle doesn’t prepare him for.