In histology, affinity purification is primarily used to isolate and study specific proteins, antibodies, or cellular components from tissue samples. By purifying these molecules, researchers can better understand their structure, function, and role within the tissue.