Nun, also spelled Nu, oldest of the ancient Egyptian gods and father of Re, the sun god. Nun’s name means “primeval waters,” and he represented the waters of chaos out of which Re-Atum began creation. Nun’s qualities were boundlessness, darkness, and the turbulence of stormy waters; these qualities were personified separately by pairs of deities. Nun, his female counterpart, Naunet, and three further pairs together formed the Ogdoad (group of eight gods) of Hermopolis. Various Egyptian creation myths retain the image of the emergence of a primeval hillock formed of mud churned from the chaotic waters of Nun. Since it was believed that the primeval ocean continued to surround the ordered cosmos, the creation myth was reenacted each day as the sun god rose from the waters of chaos. Nun was also thought to continue to exist as the source of the annual flooding of the Nile River.
https://www.britannica.com/topic/Nun-Egyptian-god