Azacitidine works by inhibiting DNA methyltransferase, an enzyme involved in DNA methylation. This inhibition leads to the demethylation of DNA, which can reactivate genes that suppress tumor growth. Additionally, azacitidine incorporates into RNA, disrupting protein synthesis and inducing cell death in rapidly dividing cells.