Part of the stomach protrudes upward into the chest, through an opening in the diaphragm. The diaphragm is the muscle separating the chest from the abdomen and is used for breathing. The hiatal hernia can allow acid to enter the esophagus causing pain and ulceration of the esophagus.