Fioricet is a combination medication that contains acetaminophen, butalbital, and caffeine. It is commonly prescribed to treat tension headaches and migraines. Acetaminophen helps to relieve pain and reduce fever, while butalbital is a barbiturate that acts as a muscle relaxant. Caffeine helps to enhance the effects of acetaminophen.