Carl Jung experienced a severe heart attack in 1944, at the age of sixty-eight. After his heart attack, he wrote much more directly about what was important to him and what he believed. It was a year later that Psychology and Alchemy was published. Heart attacks have a way of focusing your attention and puttings thing in perspective.
Jung’s description of his experience can be found in Memories, Dreams and Reflections.