Hernia surgery is a common surgical procedure to repair hernias, which occur when an organ or tissue protrudes through a weak spot in the surrounding muscle or tissue. There are different types of hernias based on where they occur in the body, and the surgery to treat them may vary accordingly.