Sigmund Freud's views on religion are described in several of his books and essays. Freud regarded God as an illusion, based on the infantile need for a powerful father figure; religion, necessary to help us restrain violent impulses earlier in the development of civilization, can now be set aside in favor of reason and science.
In An Autobiographical Study, originally published in 1925, Freud recounts that "My parents were Jews, and I have remained a Jew myself." Familiarity with Bible stories, from an age even before he learned to read, had "an enduring effect on the direction of my interest." In 1873, upon attending the University at Vienna, he first encountered antisemitism: "I found that I was expected to feel myself inferior and an alien because I was a Jew."
In a prefatory note to the Hebrew translation of Totem and Taboo (1930) Freud describes himself as "an author who is ignorant of the language of holy writ, who is completely estranged from the religion of his fathers—as well as from every other religion" but who remains "in his essential nature a Jew and who has no desire to alter that nature".
In Obsessive Actions and Religious Practices (1907), his earliest writing about religion, Freud suggests that religion and neurosis are similar products of the human mind: neurosis, with its compulsive behavior, is "an individual religiosity", and religion, with its repetitive rituals, is a "universal obsessional neurosis."
In Totem and Taboo, published in 1913, Freud analyzes the tendency of primitive tribes to promulgate rules against incest within groups named for totem animal and objects, and to create taboos regarding actions, people and things. He notes that taboos (such as that regarding incest) still play a significant role in modern society but that totemism "has long been abandoned as an actuality and replaced by newer forms". Freud believes that an original act of patricide—the killing and devouring of "the violent primal father" was remembered and re-enacted as a "totem meal...mankind's earliest festival" which was "the beginning of so many things—of social organization, of moral restrictions and of religion". Freud develops this idea further in Moses and Monotheism, his last book, discussed below. He further goes to attribute creation of gods to humans: "...we know that, like gods, [demons] are only the product of the psychic powers of man; they have been created from and out of something."