In histology, the primary goal is to prepare and preserve tissue samples in a way that allows for detailed microscopic analysis. Epoxy resin is used because it provides a stable, durable medium that maintains the integrity of the sample. This is crucial for microscopy, where even minor distortions can affect the accuracy of the observations.