Typically, after eating, a valve on your esophagus closes. This prevents acid produced by the digestive tract from backing up into the esophagus. When acid reflux occurs, the valve fails to seal properly, and the stomach contents flow into the throat and esophagus.