Mucilage is a thick, gluey substance produced by nearly all plants and some microorganisms. It is a polar glycoprotein and an exopolysaccharide. Mucilage in plants plays a role in the storage of water and food, seed germination, and thickening membranes. Cacti (and other succulents) and flax seeds especially are rich sources of mucilage.
Exopolysaccharides are the most stabilising factor for microaggregates and are widely distributed in soils. Therefore, exopolysaccharide-producing "soil algae" play a vital role in the ecology of the world's soils. The substance covers the outside of, for example, unicellular or filamentous green algae and cyanobacteria. Amongst the green algae especially, the group Volvocales are known to produce exopolysaccharides at a certain point in their life cycle. It occurs in almost all plants, but usually in small amounts. It is frequently associated with substances like tannins and alkaloids.
Mucilage has a unique purpose in some carnivorous plants. The plant genera Drosera (sundews), Pinguicula, and others have leaves studded with mucilage-secreting glands, and use a "flypaper trap" to capture insects.