The Oedipus complex is a concept of psychoanalytic theory coined by Sigmund Freud in 1910. It refers to a child's unconscious desire for the opposite-sex parent, thought as a necessary stage of psychosexual development. Freud considered that the child's identification with the same-sex parent is the successful resolution of the complex and that unsuccessful resolution of the complex might lead to neurosis, pedophilia, and homosexuality.
Freud deprecated the term "Electra complex", which was introduced by Carl Gustav Jung in 1913 in regard to the Oedipus complex manifested in young girls. Freud further proposed that the Oedipus complex, which originally refers to the sexual desire of a son for his mother, is a desire for the parent in both males and females, and that boys and girls experience the complex differently: boys in a form of castration anxiety, girls in a form of penis envy.
Oedipus refers to a 5th-century BC Greek mythological character Oedipus, who unwittingly kills his father, Laius, and marries his mother, Jocasta. A play based on the myth, Oedipus Rex, was written by Sophocles, ca. 429 BC.
Modern productions of Sophocles' play were staged in Paris and Vienna in the 19th century and were phenomenally successful in the 1880s and 1890s. The Austrian psychiatrist, Sigmund Freud (1856–1939), attended. In his book The Interpretation of Dreams first published in 1899, he proposed that an Oedipal desire is a universal, psychological phenomenon innate (phylogenetic) to human beings, and the cause of much unconscious guilt. He based this on his analysis of his feelings attending the play, his anecdotal observations of neurotic or normal children, and on the fact that Oedipus Rex was effective on both ancient and modern audiences. (He also claimed that the play Hamlet "has its roots in the same soil as Oedipus Rex", and that the differences between the two plays are revealing. "In [Oedipus Rex] the child’s wishful fantasy that underlies it is brought into the open and realized as it would be in a dream. In Hamlet it remains repressed; and—just as in the case of a neurosis—we only learn of its existence from its inhibiting consequences.")