Hernias occur when an internal organ bulges through a weak muscle. To repair a hernia, a surgeon will cut into the body and either remove or push the bulging tissue back in place. When stitching up the area, the surgeon may insert a mesh to strengthen the weak muscle.