To prepare gelatin for embedding, it is usually dissolved in warm water and mixed with a small amount of formaldehyde to stabilize the gelatin matrix. The tissue samples are then immersed in this solution, allowing the gelatin to penetrate and surround the tissue. After cooling, the gelatin solidifies, providing a firm matrix that can be easily sectioned.