A hiatal hernia develops when part of the stomach protrudes up through the diaphragm (the muscular layer between the abdomen and the chest) and into the chest. Heartburn is a common problem associated with a hiatal hernia. Not all patients with hiatal hernia have GERD, and many GERD patients don't have a hiatal hernia.