Psilocybin is the active alkaloid in magic mushrooms. It is a naturally occurring psychedelic substance that can produce feelings of connectedness, euphoria, and changes in perception.