In immunohistochemistry (IHC), agar can be used as an embedding medium for tissues that will undergo antigen retrieval processes. The gel matrix does not interfere with antibody binding, allowing for accurate localization of antigens within tissue sections. This is particularly useful in research and diagnostic settings where precise identification of cellular components is crucial.