Mucous membranes line the respiratory, digestive, and genitourinary tracts. They secrete mucus, which traps pathogens and other foreign substances. Mucus also contains antimicrobial components that help prevent infection.