If a hernia is left untreated for a long time, it may not heal on its own. In this case, surgery may be necessary to repair the hernia and close the hole in the abdominal wall. Surgery can also reduce the risk of complications such as infection and bleeding.