Lectins are carbohydrate-binding proteins that are highly specific for sugar groups that are part of other molecules, so cause agglutination of particular cells or precipitation of glycoconjugates and polysaccharides. Lectins have a role in recognition at the cellular and molecular level and play numerous roles in biological recognition phenomena involving cells, carbohydrates, and proteins. Lectins also mediate attachment and binding of bacteria, viruses, and fungi to their intended targets.
Lectins are found in many foods. Some foods, such as beans and grains, need to be cooked, fermented or sprouted to reduce lectin content. Some lectins are beneficial, such as CLEC11A, which promotes bone growth, while others may be powerful toxins such as   ricin.
Lectins may be disabled by specific mono- and oligosaccharides, which bind to ingested lectins from grains, legumes, nightshade plants, and dairy; binding can prevent their attachment to the carbohydrates within the cell membrane. The selectivity of lectins means that they are useful for analyzing blood type, and they have been researched for potential use in genetically engineered crops to transfer pest resistance.