Mucus protects the respiratory system with filtration and lubrication. Your mucus is produced by mucus membranes that run from your nose to your lungs. When you breathe, viruses, allergens, dust, and other debris get stuck to your mucus, which is then expelled from your system. …