Neurosis is the result of a conflict between the ego and its id, whereas psychosis is the analogous outcome of a similar disturbance in the relation between the ego and the external world.
Sigmund Freud (1973). “Abstracts of the Standard edition of the complete psychological works of Sigmund Freud”