In the field of histology, glycolic acid is primarily used as a decalcifying agent. It is effective in removing calcium deposits from tissue samples, which is crucial for preparing samples for microscopic examination. This process is essential for ensuring that the tissue can be sectioned properly without the interference of calcified structures.