In CF, the secretions that are normally  thin and slippery in the body, like in the airways, become thick and sticky because of a defective gene.
The secretions plug up tubes, ducts and passagewaays, especially in the pancreas and lungs. It is an inherited disease.