Resins are used to embed tissue samples to provide a rigid medium that supports the tissue during sectioning. This is especially important for ultrathin sections required for electron microscopy. Resins also help in preserving the cellular and sub-cellular structures, ensuring that they remain intact and visible under the microscope.