Methotrexate is used to treat certain types of cancer or to control severe psoriasis or rheumatoid arthritis. It may also be used to control juvenile rheumatoid arthritis. Methotrexate belongs to a class of drugs known as antimetabolites. It works by slowing or stopping the growth of cancer cells and suppressing the immune system.