after world war one, in the second phase of the psychoanalysis, when he was concerned with the analysis of ego, anxiety became a sense of danger in the ego, and the ego felt anxiety when it was threatened, and as a result, there was three sorts of anxiety  neurotic anxiety, when the ego was threatened by the drives of the id  moral anxiety, when it was threatened by punishment from the super ego, and realistic anxiety, when it was threatened by dangers from the outside world.