Often heartburn is caused by eating certain foods, such as:  Chocolate. Citrus fruits. Drinks with caffeine or alcohol. Fatty and fried foods. Garlic and onions. Mint flavorings. Spicy foods. Tomato-based foods, such as spaghetti sauce, salsa, and pizza.