A hiatal hernia occurs when the upper part of your stomach bulges through your diaphragm into your chest cavity. A hiatal hernia occurs when the upper part of your stomach bulges through the large muscle separating your abdomen and chest (diaphragm).