Imatinib belongs to a class of drugs called kinase inhibitors. It works by blocking the action of the abnormal protein that tells cancer cells to divide. This helps stop the cancer cells from spreading