Barbiturates are a class of drugs that are primarily used as central nervous system depressants. They are commonly prescribed for treating conditions such as anxiety, insomnia, and depression. They can also be used as sedatives or to control seizures.
Thus, barbiturates are used to treat depression.