Jung's theory of neurosis is based on a psyche that consists of tensions between various opposite attitudes in a self-regulating dynamic.
In appropriate circumstances the unconscious attitude can directly oppose the ego's attitude and produce all manner of neuroses.