Tiny hairs inside the nose called cilia move the mucus down toward the nostrils. When you sneeze or blow your nose, you blow out the mucus. If mucus remains in the nose and starts to dry out, it becomes dried nasal mucus or a booger. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.