All along the insides of your bronchial tubes, you have a substance called mucus. The mucus helps trap dirt from the air you breathe in. The mucus comes out when you cough.