Legal and illegal psychoactive compounds that alter brain function, leading to changes in perception, mood, consciousness, and behaviour.