A psychoactive drug, psychopharmaceutical, or psychotropic is a chemical substance that crosses the blood–brain barrier and acts primarily upon the central nervous system where it affects brain function, resulting in alterations in perception, mood, consciousness, cognition, and behavior.