Ifosfamide is used in combination with other medications to treat cancer of the testicles that has not improved or that has worsened after treatment with other medications or radiation therapy. Ifosfamide is in a class of medications called alkylating agents.