Hernias are caused by a combination of muscle weakness and strain. Depending on its cause, a hernia can develop quickly or over a long period of time. some causes of muscle weakness would be like failure of the abdominal wall to close properly in the womb, which is a congenital defectagechronic coughingdamage from injury or surgery