Capecitabine is a drug that damages the DNA (deoxyribonucleic acid) of tumor cells and blocks the function of DNA and RNA (ribonucleic acid) of tumor cells. These actions help to kill the tumor cells.