Religion is the process of unconscious wish fulfillment, where, for certain people, if the process did not take place it would put them in self-danger of coming to mental harm, being unable to cope with the idea of a godless, purposeless life.
Sigmund FreudWhat psycho-analysis reveals in the transference phenomena of neurotics can also be observed in the lives of some normal people. The impression they give is of being pursued by a malignant fate or possessed by some 'daemonic' power; but psycho-analysis has always taken the view that their fate is for the most part arranged by themselves and determined by early infantile influences.
Sigmund Freud