Lectins are used in histological techniques primarily for staining purposes. By binding to specific carbohydrate residues, lectins can help identify and differentiate various cell types and tissue structures. This is particularly useful in the study of glycobiology and for understanding the distribution of glycoconjugates.