Many philosophers and writers throughout the ages have considered life or the nature of reality as a dream or illusion.
It's our mind and imagination that creates a life and reality for us human beings, but reality in itself may remain something mysterious and
forever unknowable to us. But some believe that we can access the ultimate reality through a special faculty of our mind,
like aesthetic intuition (art), intellectual intuition (philosophy) or meditation or mystical experience (religion).
Below I quote a few select philosophers and writers that wrote about life as a dream or compared reality...