A hernia occurs when an internal organ or tissue pushes through a weak spot in the surrounding muscle or connective tissue.