Normally, a muscular valve between the esophagus and the gastric system prevents stomach acids from backing up into the esophagus. In GERD, this valve does not work properly. The stomach acids "reflux" or back up into the esophagus. This causes irritation and inflammation, and it can interfere with the sleep cycle.