Cystic fibrosis is a genetic disease that primarily affects the functioning of the digestive and respiratory systems, particularly the lungs and pancreas.