It was believed that Ra (the sun) each night passed into Duat and then battled with Apep, always winning except for certain days in which Ra is momentarily devoured, what the Egyptians saw as an eclipse.