1 A hiatal hernia occurs when the upper part of your stomach pushes up through your diaphragm and into your chest region. 2  There are generally two types of hiatal hernia: sliding and fixed.  This condition mostly occurs in people who are over 50 years old.