Hernia surgery is a procedure to repair a hernia, which occurs when an organ or fatty tissue passes through a weak point or opening in the surrounding muscle or connective tissue. Hernias usually appear in the abdomen or groin.