Mucus is mainly composed of polysaccharides, which are long-chain carbohydrates. These molecules are stiff when dry, and sticky and slippery when wet. They are present in all types of organisms from bacteria to man.
In vertebrates mucus is made by covering mucous membranes. Mucus may have sickness-preventing enzymes (such as lysozymes) and immunoglobulins (antigens). Mucus protects epithelial cells in the lungs, gut, genital, visual, and auditory systems in mammals; the epidermis in amphibians; and the gills in fish. Snails, slugs, hagfish, and certain invertebrates also produce external mucus. As well as a protective function, slime helps movement and plays a role in communication.
Mucus is produced in many parts of the body. All the alimentary canal, nose, and sexual organs have mucus glands which pass the mucus to the surfaces. The surfaces are mostly internal surfaces, though in some animals mucus covers the outside of the animal. Slugs are an example of this. Mucus glands are exocrine glands, so they pass their mucus to the surface along ducts.