Temozolomide is most commonly used to treat brain tumors like glioblastoma and anaplastic astrocytoma. It has also shown effectiveness in treating melanoma, certain types of lymphomas, and other solid tumors. However, its primary indication remains gliomas due to its ability to penetrate the central nervous system.