(old, now only used in psychology/psychiatry) the process or action of coming up with improbable or unrealistic mental images, often to fulfill a psychological need;
e.g. The patient was engaging in phantasy, which the doctor found concerning.
(noun)
something that has been imagined by someone or created by their mind;
e.g. It has been a phantasy of hers to travel to every country in the world.