Heartburn can be triggered by many factors, but food is the main contributor. The foods which can trigger heartburn include alcohol, garlic, black pepper, raw onions and spicy foods. Others include chocolate, citrus fruit, and their products such as oranges and lemons.