A barbiturate is a type of medication that affects the central nervous system and is used as a sedative or sleep aid. It can also be used to treat anxiety, epilepsy, and other conditions. Barbiturates can be habit-forming and must therefore be used with caution and under medical supervision.