An inguinal hernia occurs when tissue, such as part of the intestine, protrudes through a weak spot in the abdominal muscles. The resulting bulge can be painful, especially when you cough, bend over or lift a heavy object. However, many hernias do not cause pain. An inguinal hernia isn't necessarily dangerous.