In general terms, we can say that a hernia occurs when the layers that make up the abdominal wall weaken.