Acid reflux occurs when stomach acid flows backward into the esophagus. This causes heartburn and other symptoms.