Spicy foods are known to be a common trigger for heartburn. They can irritate the lining of the stomach and esophagus, leading to an increase in stomach acid production.