SAM acts as a methyl donor in the process of DNA methylation. Methylation of DNA is typically carried out by enzymes known as DNA methyltransferases (DNMTs). This process adds a methyl group to the cytosine bases of DNA, leading to gene silencing or activation, depending on the context. The methylation status of genes can be visualized using histological techniques such as immunohistochemistry.