Heartburn happens when stomach acid backs up into your esophagus.