Purine analogues work by incorporating themselves into the DNA or RNA of cancer cells during replication. This incorporation can lead to faulty DNA/RNA synthesis, which triggers cell death or apoptosis. By disrupting the normal function of nucleic acids, purine analogues inhibit the rapid division of cancer cells.