Ancient Egyptian magic was a powerful force intertwined with religion, influencing gods, nature, and the afterlife. Heka, the personification of magic, was fundamental to the universe. Egyptians believed in the power of words, amulets, and names to maintain maat, the cosmic order. Magic evolved from predynastic times, becoming formalized in state religion. Funerary texts like the Pyramid Texts and Book of the Dead guided the deceased. Various types of magic, including healing and love spells, were practiced. Deities like Isis and Thoth played crucial roles in magical beliefs.