with the pharaoh's deceased predecessors. Isis was therefore the mythological mother and wife of kings. In the Pyramid Texts her primary importance to the king was as one of the deities who protected and assisted him in the afterlife. Her prominence in royal ideology grew in the New Kingdom. Temple reliefs from that time on show the king nursing at Isis's breast; her milk not only healed her child, but symbolized his divine right to rule. Royal ideology increasingly emphasized the importance of queens as earthly counterparts of the goddesses who served as wives to the king and mothers to his heirs. Initially the most important of these goddesses was Hathor, whose attributes in art were incorporated into queens' crowns. But because of her own mythological links with queenship, Isis too was given the same titles and regalia as human queens. Isis's actions in protecting Osiris against Set became part of a larger, more warlike aspect of her character. New Kingdom funerary texts portray Isis in the barque of Ra as he sails through the underworld, acting as one of several deities who subdue Ra's archenemy, Apep. Kings also called upon her protective magical power against human enemies. In her Ptolemaic temple at Philae, which lay near the frontier with Nubian peoples who raided Egypt, she was described as the protectress of the entire nation, more effective in battle than "millions of soldiers", supporting Ptolemaic kings and Roman emperors in their efforts to subdue Egypt's enemies. Goddess of magic and wisdom Isis was also known for her magical power, which enabled her to revive Osiris and to protect and heal Horus, and for her cunning. By virtue of her magical knowledge, she was said to be "more clever than a million gods". In several episodes in the New Kingdom story "The Contendings of Horus and Set", Isis uses these abilities to outmaneuver Set during his conflict with her son. On one occasion, she transforms into a young woman who tells Set she is involved in an inheritance dispute similar to Set's usurpation of Osiris's crown. When Set calls this situation unjust, Isis taunts him, saying he has judged himself to be in the wrong. In later texts, she uses her powers of transformation to fight and destroy Set and his followers. Many stories about Isis appear as historiolae, prologues to magical texts that describe mythic events related to the goal