The cells coating the inside of your lungs (epithelial cells) have little hair-like structures called cilia which can vibrate and move a layer of fluid (mucus) produced by other cells known as goblet cells. Any irritant or pathogen can get stuck in this mucus as it is moved up to a position where it can be coughed out.
Latest Answers