Cystic fibrosis is a genetic condition. It's caused by a faulty gene that affects the movement of salt and water in and out of cells. This, along with recurrent infections, can result in a build-up of thick, sticky mucus in the body's tubes and passageways – particularly the lungs and digestive system