Psychosexual development character Oedipus, who unwittingly killed his father, Laius, and sexually possessed his mother, Jocasta. Analogously, in the phallic stage, a girl's decisive psychosexual experience is the Electra complex, her daughter–mother competition for psychosexual possession of father. This psychological complex derives from the 5th-century BC Greek mythologic character Electra, who plotted matricidal revenge with Orestes, her brother, against Clytemnestra, their mother, and Aegisthus, their stepfather, for their murder of Agamemnon, their father, (cf. "Electra", by Sophocles). Initially, Freud equally applied the Oedipus complex to the psychosexual development of boys and girls, but later developed the female aspects of the theory as
Psychology of religion modified the Freudian theory and produced a more complex account of the functions of religion. In his book "Psychoanalysis and Religion" he responded to Freud's theories by explaining that part of the modification is viewing the Oedipus complex as based not so much on sexuality as on a "much more profound desire", namely, the childish desire to remain attached to protecting figures. The right religion, in Fromm's estimation, can, in principle, foster an individual's highest potentialities, but religion in practice tends to relapse into being neurotic. According to Fromm, humans need a stable frame of reference. Religion fills this need.