A hernia occurs when tissue or part of an organ leaves the area in which it is supposed to be located and protrudes into a different area. Most commonly, it occurs when a portion of the intestines leaves the abdomen and enters the groin (the area between the abdomen and the thigh). Another example, hiatal hernia, occurs when part of the stomach enters the chest cavity.