Anxiolytics, sedatives and hypnotics are drugs that work on the central nervous system to treat anxiety and insomnia. The main classes of drugs are benzodiazepines and barbiturates. Please refer to the drug classes listed below for further information. barbiturates.