The primary mechanism of anti-cancer drugs involves targeting rapidly dividing cells, which is a hallmark of cancer cells. This can be achieved through different mechanisms, such as damaging the DNA of cancer cells, inhibiting cell division, or blocking the necessary enzymes for cell proliferation. Some drugs also modulate the immune system to recognize and destroy cancer cells.