The lining of the trachea contains mucus-producing cells and cells with cilia.
Synchronized beating of the cilia expels mucus and trapped microbes up into the pharynx.
Video: