In histology, carmine is primarily used as a staining agent for tissues. It helps in highlighting specific structures within biological samples, enabling researchers to observe and identify cellular and tissue components. Carmine is particularly effective in staining glycogen, mucin, and other polysaccharides, making it a valuable tool for studying carbohydrate-rich tissues.