Dolasetron works by blocking the action of serotonin, a natural substance that may cause nausea and vomiting. By inhibiting the serotonin receptors in the brain and gastrointestinal tract, it helps manage these debilitating symptoms in cancer patients.