Caffeine is used to restore mental alertness or wakefulness during fatigue or drowsiness. Caffeine is also found in some headache and migraine medications, in certain dietary supplements used for weight loss, and in many popular energy drinks. Caffeine citrate (Cafcit) is available by prescription only.