Psilocybin is a hallucinogenic chemical in certain mushrooms known as magic mushrooms. Eating mushrooms that contain psilocybin can have a variety of effects, ranging from euphoria to hallucinations.