P. Kousoulis - Ancient Egyptian Demonology
The dream in ancient Egypt functioned as a liminal zone between the land of the living and the farworld. However, dreams and nightmares were also phenomena over which the dreamer had little control, and their permeable boundaries allowed both the divine and the demonic inhabitants of the beyond access to the visible world. Sometimes the result was a beneficial experience, as is attested in New Kingdom royal texts and elite hymns that relate the awe-inspiring contact a dreamer could have with a god or a goddess. But another more disturbing belief was that dreams could also allow the vulnerable sleeper to be watched or even assaulted by the hostile dead.