This medication is used to treat certain types of cancer (such as acute lymphoblastic leukemia, chronic myeloid leukemia, gastrointestinal stromal tumors, and myelodysplastic/myeloproliferative diseases). It works by slowing or stopping the growth of cancer cells.