The function of the nasal cavity is to filter, warm, and moisten the air you breathe in before it goes to your lungs.It also helps trap dust, germs, and other particles using tiny hairs and mucus. Additionally, the nasal cavity is involved in your sense of smell and helps improve how your voice sounds when you speak.