Answer
Heartburn is caused by stomach acid coming up out of the stomach. This acid reflux burns the inside of the esophagus.
Work Step by Step
Antacids and saliva are both bases. By taking these, or swallowing exaggeratedly, some of the acid will be neutralized.