A hernia operation is a surgical procedure used to repair a hernia. A hernia is a condition where part of the intestine or other organ bulges through a weakness in the muscle in the abdominal wall. A hernia operation may be necessary if the hernia causes pain or other symptoms.