What is the purpose of mucus in the nasal cavity?

Flexi Says:
The nasal cavity is also part of the respiratory system. The nose and nasal cavity filter, warm, and moisten the air we inhale. Hairs and mucus produced in the nose trap particles in the air and prevent them from reaching the lungs.