GERD happens when the muscular ring at the end of the esophagus does not close properly. This allows stomach contents to flow back, or reflux, into the esophagus and irritate it. The acid may also irritate the pharynx.