Temozolomide is used to treat certain types of brain tumors. Temozolomide is in a class of medications called alkylating agents. It works by slowing or stopping the growth of cancer cells in your body.