Mucus is a viscous, slippery substance produced by the mucous membranes and glands. It primarily consists of water, glycoproteins, and enzymes. Its main function is to protect and lubricate various parts of the body, including the respiratory, digestive, and reproductive systems.