Its main function is to keep foreign or unwanted particles from entering the lungs through the nasal cavity.