Sticky airway secretion that prevents lung damage by trapping foreign particles. When infection makes your lungs produce too much mucus, it clogs the airways.
Microbiology and parasitology: A textbook for health science (2nd edition) by Dr. Bartolome and Dr. Quiles. On pages 311-312 (Respi), 361-362 (STI), 369-370 (UTI) and 395-396.