Much of the story is based in religious ideas and the general nature of Egyptian society: the divine nature of kingship, the succession from one king to another, the struggle to maintain "maat", and the effort to overcome death.