Several factors can lead to heartburn. Some of the more common causes of this GI symptom are: Certain medications Lying down soon after eating Consuming spicy, acidic, or fatty foods Consuming caffeine or alcohol Overeating Conditions like a hiatal hernia or gastroesophageal reflux disease Being pregnant Smoking