Fioricet is a combination medication used to treat tension headaches and migraines. It contains acetaminophen, butalbital (a barbiturate), and caffeine. Acetaminophen helps reduce pain, butalbital relaxes muscle contractions involved in headaches, and caffeine improves the effects of acetaminophen.