Cytarabine works by incorporating itself into the DNA of cancer cells during the S-phase of the cell cycle. As a nucleoside analog, it mimics the natural nucleosides required for DNA replication. Once integrated, it inhibits the function of DNA polymerase, thereby halting DNA synthesis and triggering apoptosis (programmed cell death) in rapidly dividing cancer cells.