Mucus is a viscous secretion produced by mucous membranes, primarily composed of water, glycoproteins known as mucins, inorganic salts, and epithelial cells. It serves as a protective barrier and lubricant in various parts of the body, including the respiratory, digestive, and urogenital tracts.