In the context of cancer, DNA methylation plays a dual role. It can silence tumor suppressor genes, paving the way for uncontrolled cell proliferation, or it can activate oncogenes which drive the malignant transformation. Aberrant methylation patterns are a hallmark of various cancers, contributing to their initiation and progression.