Barbiturates are used to treat seizures and insomnia. They're also used for sedation before procedures or surgeries. Barbiturates work by depressing the central nervous system, which helps to calm your brain and nerves. These medications come in different forms, including oral pills and injections. Examples include phenobarbital and pentobarbital.