In histology, photosensitizers are primarily used for staining and imaging purposes. The fluorescence emitted by these compounds when excited by light allows researchers to visualize and differentiate between various cellular components. This is particularly useful in the study of cellular structures and the identification of specific biomolecules.