Psilocybin is a mind-altering chemical. It changes the brain to an altered state of mind, or a different state of consciousness. This can lead to effects like hallucinations or visions. They may be used for medical purposes to treat cluster headaches, obsessive-compulsive disorder, and certain kinds of depression.