Mucus is a viscous fluid produced by the mucous membranes in various parts of the body, including the respiratory and digestive systems. It serves as a protective barrier by trapping pathogens, irritants, and particles that enter the body through the nose or mouth. Mucus is also involved in lubrication and protection of internal organs such as the stomach and intestines.